7.2 Upgrade Oracle Machine Learning for R
You can upgrade Oracle Machine Learning for R from the previous release 1.5.1 to the current release 2.0.
To upgrade Oracle Machine Learning for R and migrate your data:
-
Ensure that you have the version of R that is required for the release of Oracle Machine Learning for R that you are upgrading to. Oracle Machine Learning for R 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 Oracle Machine Learning for R 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 Oracle Machine Learning for R Server for Oracle AI DatabaseRelease 26ai, run the
server.shscript 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
rqcfg.sqlscript. 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 Oracle Machine Learning for R Client, install the Oracle Machine Learning for R 2.0 client packages and supporting packages to overwrite the old packages.
See Install the Oracle Machine Learning for R Packages and Install the Oracle Machine Learning for R Supporting Packages for instructions.
Parent topic: Administrative Tasks for Oracle Machine Learning for R