8.5 Uninstalling Oracle R Enterprise

This topic contains these sections:

8.5.1 Uninstalling Oracle R Enterprise Server

To uninstall Oracle R Enterprise 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.

8.5.1.1 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 Oracle R Enterprise Server in Oracle home.

If Oracle R Enterprise 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 Oracle R Enterprise 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 Oracle R Enterprise Server, then the other shared instances or PDBs will no longer support Oracle R Enterprise Server. You can easily restore Oracle R Enterprise 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 Oracle R Enterprise Server:

./server.sh  --uninstall  
./server.sh  -u
./server.sh  -u --keep
./server.sh  --uninstall  --keep

8.5.1.2 Performing a Full Uninstall

A full uninstall removes the RQSYS schema metadata and PL/SQL code from the database and removes all Oracle R Enterprise Server libraries and R packages from Oracle home.

The following commands each perform a full uninstall of Oracle R Enterprise 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 Oracle R Enterprise Server support. See Performing a Partial Uninstall for details.

8.5.2 Uninstalling Oracle R Enterprise Client

To uninstall the Oracle R Enterprise packages and supporting packages, start R and type the commands listed in Example 8-1.

Example 8-1 R Commands for Uninstalling Oracle R Enterprise Packages

remove.packages("ORE")
remove.packages("ORExml")
remove.packages("OREeda")
remove.packages("OREcommon")
remove.packages("OREdplyr")
remove.packages("OREembed")
remove.packages("OREgraphics")
remove.packages("OREstats")
remove.packages("OREbase")
remove.packages("ROracle")
remove.packages("DBI")
remove.packages("Cairo")
remove.packages("png")
remove.packages("OREdm")
remove.packages("OREpredict")
remove.packages("arules")
remove.packages("statmod")
remove.packages("randomForest")