4.3.1 Prepare to Use OML4R Server with R-3.6.1 or Later

Instructions for downloading and installing the OML4R Server packages built under R-3.6.1.

In Oracle Database 18c and 19c, the OML4R Server packages are in the $ORACLE_HOME/R/library/ directory. For use with R-3.6.1 or later, you can either rename the OML4R packages in that directory or you can delete them. You then download and install the OML4R Server packages that are compatible with the R version you are using.

These instructions rename the original OML4R server packages and replace them with ones built under R-4.0.5.
  1. Rename the OML4R packages in the $ORACLE_HOME/R/library/ directory.
    $ cd $ORACLE_HOME/R/library
    
    $ mv ORE ORE.orig
    $ mv OREbase OREbase.orig
    $ mv OREcommon OREcommon.orig
    $ mv OREdm OREdm.orig
    $ mv OREdplyr OREdplyr.orig
    $ mv OREeda OREeda.orig
    $ mv OREembed OREembed.orig
    $ mv OREgraphics OREgraphics.orig
    $ mv OREmodels OREmodels.orig
    $ mv OREpredict OREpredict.orig
    $ mv OREserver OREserver.orig
    $ mv OREstats OREstats.orig
    $ mv ORExml ORExml.orig
    
  2. Go to the Oracle Machine Learning for R Downloads page, accept the license agreement, and download the R-4.0.5 compatible OML4R Server packages to an installation directory, such as /oml4rserver_install_dir/.

    Note:

    Use the same installation directory for all OML4R components.
  3. Go to the installation directory and unzip the downloaded file.
    $ cd /oml4rserver_install_dir/
    $ unzip ore-server-platform-arch-version.zip

    When you unzip the file, the /server directory is created and these files are extracted to it:

    /server/ORE_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREbase_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREcommon_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREdm_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREdplyr_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREeda_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREembed_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREgraphics_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREmodels_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREpredict_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREserver_version_R_arch-unknown-platform-gnu.tar.gz
    /server/OREstats_version_R_arch-unknown-platform-gnu.tar.gz
    /server/ORExml_version_R_arch-unknown-platform-gnu.tar.gz
  4. Go to the /oml4rserver_install_dir/server directory and execute the following commands:
    $ cd /oml4rserver_install_dir/server
    
    $ ORE CMD INSTALL ORE_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREbase_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREcommon_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREdm_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREdplyr_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREeda_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREembed_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREgraphics_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREmodels_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREpredict_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREstats_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL OREserver_version_R_arch-unknown-platform-gnu.tar.gz
    $ ORE CMD INSTALL ORExml_version_R_arch-unknown-platform-gnu.tar.gz
If you are installing OML4R Server for the first time, then run the rqcfg.sql script.If you have already installed OML4R Server and are upgrading R, then you do not need to, and should not, run the rqcfg.sql script.