7.2 Upgrade Oracle Machine Learning for R
You can upgrade OML4R from the previous release 1.5.1 to the current release 2.0.
To upgrade OML4R and migrate your data:
Note:
- The OML4R 2.0 rqcfg.sql script is used for a fresh OML4R installation and when the OML4R packages and shared libraries exist for a previous version of the components under
$ORACLE_HOME. - Always use server.sh to upgrade OML4R to a new version in the current database.
- By default server.sh by installs the supporting packages if they are in the same directory as the server components.
-
Ensure that you have the version of R that is required for the release of OML4R that you are upgrading to. OML4R requires R 4.0.5.
See the table of configuration requirements and server support in Oracle Machine Learning for R System Requirements for On-Premises Database for the R requirement.
To upgrade R, do the following:
-
Back up your OML4R user schema, data store objects, R scripts, and the RQSYS schema.
-
Remove the Oracle R Distribution RPMs or open source R components.
-
Install the required R version, then proceed to Step 2.
-
-
To upgrade OML4R Server for Oracle Database Release 19c and 21c, run the
server.shorserver.batscript to perform an upgrade.Instructions for upgrading from OML4R 1.5.1 to 2.0.
- Prepare the upgrade scripts
- Go to the Oracle Machine Learning for R Downloads page, accept the license agreement, and download the OML4R 2.0 Server packages to an installation directory, such as /oml4rserver_2.0_install_dir/.
- Go to the 2.0 installation directory and unzip the downloaded file.
$ cd /oml4rserver_2.0_install_dir/$ unzip ore-server-platform-arch-2.0.zip
- Prepare the upgrade scripts
- Run the OML4R 2.0
server.shorserver.batscript. When the earlier version of OML4R server is detected, you are asked to confirm if you want to upgrade. Type Yes to start the upgrade or Type No to stop the process.$ cd /oml4rserver_2.0_install_dir/$ ./server.shOracle R Enterprise 2.0 Server.Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved.Checking platform .................. PassChecking R ......................... PassChecking R libraries ............... PassChecking ORACLE_HOME ............... PassChecking ORACLE_SID ................ PassChecking sqlplus ................... PassChecking ORACLE instance ........... PassChecking CDB/PDB ................... FailERROR: cannot install ORE in a root containerPDB to use for ORE installation [list]: <PDB_NAME>Checking CDB/PDB ................... PassChecking ORE ....................... PassCurrent configurationR Version ........................ Oracle Distribution of R version 4.0.5 (--)R_HOME ...........................<R_HOME>R_LIBS_USER ......................<R_LIBS_USER>ORACLE_HOME ......................<ORACLE_HOME>ORACLE_SID ......................<ORACLE_SID>.PDB ..............................<PDB_NAME>Existing R Version ...............Oracle Distribution of R version 4.0.5 (--)Existing R_HOME ..................<R_HOME>Existing ORE data ................ 1.5.1Existing ORE code ................ 1.5.1Existing ORE libraries ........... 1.5.1RQSYS PERMANENT tablespace .......<PERM_TABLESPACE>RQSYS TEMPORARY tablespace ......<TEMP_TABLESPACE>Operation ........................Install/Upgrade Proceed? [yes] yesRemoving R libraries ...............PassRemoving ORE libraries ............. PassInstalling R libraries ............. PassInstalling ORE libraries ........... PassUpgrading RQSYS 1.5.1 .............. PassConfiguring ORE .................... PassRemoving ORE packages .............. PassInstalling ORE packages ............ PassRemoving ORE script ................ PassCreating ORE script ................ PassInstalling supporting packages ..... PassDone -
To upgrade OML4R Client, install the OML4R 2.0 client packages and supporting packages to overwrite the old packages.
See Install the Oracle Machine Learning for R Packages and Install the OML4R Supporting Packages for instructions.
Parent topic: Administrative Tasks for Oracle Machine Learning for R