12.5.1 About Oracle Deinstallation Options
The deinstall.bat
command stops Oracle software, and removes Oracle software and configuration files from the operating system.
The deinstall
command is available in Oracle home directories after installation. It is located in the %ORACLE_HOME%\deinstall
directory.
deinstall
creates a response file by using information in the Oracle home and using the information you provide. You can use a response file that you generated previously by running the deinstall
command using the -checkonly
option. You can also edit the response file template.
Note:
-
You must run the
deinstall
command from the same release to remove Oracle software. Do not run thedeinstall
command from a later release to remove Oracle software from an earlier release. For example, do not run thedeinstall
command from the 21c Oracle home to remove Oracle software from an existing 19.0.0 Oracle home. -
After running the
deinstall
command, you must remove the corresponding Oracle home directory and stop all services. -
Starting with Oracle Database 12c Release 1 (12.1.0.2), the
roothas.bat
script replaces theroothas.pl
script in the Oracle Grid Infrastructure home for Oracle Restart, and therootcrs.bat
script replaces therootcrs.pl
script in the Grid home for Oracle Grid Infrastructure for a cluster.
If the software in the Oracle home is not running (for example, after an
unsuccessful installation), then the deinstall
cannot determine the
configuration. You must provide all the configuration details either interactively or in
a response file.
Parent topic: Removing Oracle Clusterware and Oracle ASM Software