5.3 Install Oracle Machine Learning for R for Oracle RAC Without DCLI
How to install OML4R for an Oracle Real Application Clusters (Oracle RAC) database if DCLI is unavailable.
If the Distributed Command Line Interface (DCLI) is not available, you must install each of the following components individually on each database instance in the Oracle RAC cluster.
- R or Oracle R Distribution
- OML4R Server
- OML4R supporting packages
The first section contains installation instructions for Oracle Database 18c and later. The second section has instructions for Oracle Database 12c and earlier.
Install OML4R in an Oracle 18c and Later RAC Environment
Following these step to install Oracle R Distribution, OML4R, and the OML4R supporting packages.
- Install Oracle R Distribution. See Install R for Oracle Machine Learning for R.
- Start SQL*Plus, log in to your PDB directly and run the
rqcfg.sql
script. The following example uses the PDBPDB1
and gives example values for the script arguments.SQL> sqlplus / as sysdba SQL> alter session set container=PDB1; SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL; SQL> @$ORACLE_HOME/R/server/rqcfg.sql define permtbl = SYSAUX define temptbl = TEMP define orahome = /u01/app/oracle/product/21.3.0.0/dbhome_1 define rhome = /usr/lib64/R
- At your operating system prompt, go to the
ORACLE_HOME/bin
directory and grant read and execute permission to all users to theORE
directory.cd $ORACLE_HOME/bin chmod 755 ORE
- Create a directory to contain the OML4R 1.5.1 supporting packages for your system and change directories to it. To that directory, download the supporting package zip file as described in Install the OML4R Supporting Packages.
- Extract the supporting packages.
- For each package, at your operating system command prompt, run the following command.
ORE CMD INSTALL package
Install OML4R in an Oracle 12c and Earlier RAC Environment
Following these step to install Oracle R Distribution, OML4R, and the OML4R supporting packages.
Note:
You can perform steps 2 and 3 simultaneously by first extracting the OML4R supporting packages bundle in the same directory from which you execute theserver.sh
script. (For Microsoft Windows, the script is server.bat
.)
- Install Oracle R Distribution. See Install R for Oracle Machine Learning for R.
- Execute the
server.sh
script from the OML4R Server installer bundle. See Install Oracle Machine Learning for R Server - Install the OML4R supporting packages. See Install Oracle Machine Learning for R Server for Oracle Database 12c and Earlier.
When you execute the server.sh
script on node 1, it installs the OML4R packages on the operation system in the $ORACLE_HOME/R/library
directory. It also installs and configures the database components of OML4R. While running the script, you can create a new database user when prompted to do so. You can create a user while running the script only during the execution of the server.sh
script on the first node.
When you execute the server.sh
script on each subsequent node, the script only installs the OML4R packages on the operation system.
Parent topic: Install Oracle Machine Learning for R on Exadata