Uninstall Oracle Machine Learning for R
Instructions for uninstalling OML4R
This topic contains these sections:
Related Topics
Uninstall OML4R Server from Oracle Database 18c or Later
How to uninstall OML4R from Oracle Database Release 18c or later.
The rquncfg.sql
script uninstalls the database functions and procedures that are associated with OML4R. It does not remove the OML4R libraries in $ORACLE_HOME/lib
because these are shipped with Oracle Database. Also, it does not remove the OML4R packages in $ORACLE_HOME/R/library
.
To uninstall OML4R Server components, run the rquncfg.sql
script.
Uninstall OML4R Server from Oracle Database 12c and Earlier
To uninstall OML4R Server, run the server
script with the --uninstall
option.
You can perform either a full or a partial uninstall. A partial uninstall is performed by default.
WARNING:
Do not use theserver.sh
script to uninstall Oracle Machine Learning for R components from Oracle Database Release 18c or Release 19c. Doing so results in important files being deleted from the database. Instead, for an 18c or later database, use the rquncfg.sql
script.
This topic has the following sections:
Related Topics
Performing a Partial Uninstall
A partial uninstall removes the RQSYS metadata and PL/SQL packages from the database but leaves the libraries and R packages that support OML4R Server in Oracle home.
If OML4R Server support is installed in more than one database instance in the same Oracle home, or if it is installed in a pluggable database (PDB), then a partial uninstall removes OML4R Server support from the specified database without affecting the other databases. The server
script performs a partial uninstall by default.
Note:
If you accidentally perform a full uninstall for one of the instances or PDBs that share support for OML4R Server, then the other shared instances or PDBs will no longer support OML4R Server. You can easily restore OML4R Server support in Oracle home by rerunning the server
script to perform an installation in one of the shared instances or PDBs.
If you run the server
script with the -u
option, then a partial uninstall is performed. You can specify the --keep
option to explicitly request a partial uninstall. The following commands all perform a partial uninstall of OML4R Server:
./server.sh --uninstall ./server.sh -u ./server.sh -u --keep ./server.sh --uninstall --keep
Related Topics
Performing a Full Uninstall
A full uninstall removes the RQSYS schema metadata and PL/SQL code from the database and removes all OML4R Server libraries and R packages from Oracle home.
The following commands each perform a full uninstall of OML4R Server:
./server.sh --uninstall --full ./server.sh -u -full
Note:
If you accidentally perform a full uninstall in a shared Oracle home, then rerun the server
script to reinstall OML4R Server support. See Performing a Partial Uninstall for details.
Related Topics
Uninstall OML4R Client
Instructions for uninstalling OML4R Client.
To uninstall the OML4R packages and supporting packages, start R and type the commands listed in the following example.
Example 7-1 R Commands for Uninstalling OML4R Packages
remove.packages("arules") remove.packages("DBI") remove.packages("Cairo") remove.packages("ORE") remove.packages("OREbase") remove.packages("OREcommon") remove.packages("OREdm") remove.packages("OREdplyr") remove.packages("OREeda") remove.packages("OREembed") remove.packages("OREgraphics") remove.packages("OREmodels") remove.packages("OREpredict") remove.packages("OREstats") remove.packages("ORExml") remove.packages("png") remove.packages("randomForest") remove.packages("ROracle") remove.packages("statmod")