A.2.3 Oracle Machine Learning for Rサーバーのインストール

OML4Rサーバーには、Oracle DatabaseのRQSYSスキーマと、OML4Rパッケージおよび共有ライブラリが含まれます。

OML4Rサーバーをインストールするには:

  1. 表A-1に従って環境を確認します。

  2. OML4R Serverコンポーネントのインストール・ディレクトリを作成します。ディレクトリには任意の名前を使用できます。次に例を示します。

    /myhome/myomlserver/
  3. Oracle Machine Learning for R DownloadsのWebサイトから、OML4Rサーバー・インストール・ファイルおよびSupporting Packagesをダウンロードします。

    1. ライセンス契約に同意して、ご使用のプラットフォーム用のOML4R Serverファイルをインストール・ディレクトリにダウンロードします。

    2. ライセンス契約に同意して、ご使用のプラットフォーム用のOML4R Supporting Packagesをインストール・ディレクトリにダウンロードします。

    インストール・ディレクトリに2つのzipファイルが配置されます。

    ore-server-linux-x86-64-1.5.1.zip
    ore-supporting-linux-x86-64-1.5.1.zip
    
  4. これらのファイルを解凍します。

    unzip ore-server-linux-x86-64-1.5.1.zip
    unzip ore-supporting-linux-x86-64-1.5.1.zip
    

    両方のファイルを解凍した後のインストール・ディレクトリは次のようになります。

    /myhome/myomlserver
         ore-server-linux-x86-64-1.5.1.zip
         ore-supporting-linux-x86-64-1.5.1.zip
         server.sh
         /server
         /supporting
    
  5. 次の例で示すように、server.shを実行して、OML4Rサーバーのデフォルト・インストールを実行します。この例では、スクリプトがインタラクティブに実行されます。ユーザー入力は太字で表示されます。

    ノート:

    スクリプトによりプロンプトに[list]と表示されたら、[Enter]を押すと、選択した使用可能なアイテムのリストが表示されます。

  6. Oracle Linux 6では、LD_LIBRARY_PATHを、R-core-extra RPMでインストールされるファイルの場所に設定します。

    export LD_LIBRARY_PATH=/usr/lib64/R/port/Linux-X64/lib

例A-1 OML4Rサーバーのデフォルトの初回インストール

[oml4rserver_install_dir]$ ./server.sh

Oracle R Enterprise 2.0 Server.

Copyright (c) 2012, 2022 Oracle and/or its affiliates. 
All rights reserved.

Checking platform .................. Pass
Checking R ......................... Pass
Checking R libraries ............... Pass
Checking ORACLE_HOME ............... Pass
Checking ORACLE_SID ................ Pass
Checking sqlplus ................... Pass
Checking ORACLE instance ........... Pass
Checking CDB/PDB ................... Pass
Checking ORE ....................... Pass

Choosing RQSYS tablespaces
PERMANENT tablespace to use for RQSYS [list]:
SYSAUX
SYSEXT
SYSTEM
PERMANENT tablespace to use for RQSYS [list]: SYSAUX
TEMPORARY tablespace to use for RQSYS [list]:
TEMP
TEMPORARY tablespace to use for RQSYS [list]: TEMP

Current configuration
R Version ........................ Oracle Distribution of R version 4.0.5 (--)
R_HOME ........................... /usr/lib64/R
R_LIBS_USER ...................... /product/19.1.0/dbhome_1/R/library  
ORACLE_HOME ....................../product/19.1.0/dbhome_1  
ORACLE_SID ....................... x19

 Existing R Version ............... None
 Existing R_HOME .................. None
 Existing ORE data ................ None
 Existing ORE code ................ None
 Existing ORE libraries ........... None

 RQSYS PERMANENT tablespace ..... SYSAUX
 RQSYS TEMPORARY tablespace ..... TEMP

 Operation ........................ Install/Upgrade

Proceed? [yes] y

Removing R libraries ............... Pass
Installing R libraries ............. Pass
Installing ORE libraries ........... Pass
Installing RQSYS data .............. Pass
Configuring ORE .................... Pass
Installing RQSYS code .............. Pass
Installing ORE packages ............ Pass
Creating ORE script ................ Pass
Installing supporting packages ..... Pass

Done