Deinstallation Examples for Oracle Database

Use these examples to help you understand how to run the deinstall command.

Run deinstall from the $ORACLE_HOME/deinstall directory. The deinstallation starts without prompting you for the Oracle home path.

$ ./deinstall

You can generate a deinstallation response file by running deinstall with the -checkonly flag.

./deinstall -silent --checkonly

The deinstall tool generates a response file in /tmp and displays the location. For example, /tmp/deinstall2024-08-01_01-40-28PM/response/deinstall_Ora23Home1.rsp

Use the optional flag -paramfile to run this response file:

$ cd /u01/app/oracle/product/23.0.0/dbhome_1/deinstall
$ ./deinstall -paramfile /tmp/deinstall2024-08-01_01-40-28PM/response/deinstall_Ora23Home1.rsp

Similarly, to remove the Oracle Grid Infrastructure home, use the deinstall command in the Oracle Grid Infrastructure home.

$ cd  /u01/app/23.0.0/grid/deinstall
$ ./deinstall -paramfile /tmp/deinstall2024-08-01_01-40-28PM/response/deinstall_Ora23Grid1.rsp

In this example, the Oracle Grid Infrastructure home is /u01/app/23.0.0/grid