A.2.3 Install Oracle Machine Learning for R Server

OML4R Server includes the RQSYS schema in Oracle Database and OML4R packages and shared libraries.

To install OML4R Server:

  1. Verify the environment according to Table A-1.

  2. Create an installation directory for the OML4R Server components. The directory can have any name. For example:

    /myhome/myomlserver/
  3. Download the OML4R Server installation files and supporting packages from the Oracle Machine Learning for R Downloads website.

    1. Accept the license agreement and download the OML4R Server files for your platform to your installation directory.

    2. Accept the license agreement and download the OML4R Supporting packages for your platform to your installation directory.

    The installation directory now contains two zip files.

    ore-server-linux-x86-64-1.5.1.zip
    ore-supporting-linux-x86-64-1.5.1.zip
    
  4. Unzip the files.

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

    The installation directory looks like this after you unzip both files:

    /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. Run server.sh to perform a default installation of OML4R Server as shown in the following example. In this example, the script runs interactively. User input is shown in bold.

    Note:

    When the script displays [list] in a prompt, you can press Enter to obtain a list of available items for your choice.

  6. On Oracle Linux 6, set LD_LIBRARY_PATH to the location of the files installed by the R-core-extra RPM:

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

Example A-1 A Default, First-Time Installation of OML4R Server

[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