Deinstallation Examples for Oracle Database

Examples of running deinstallation using OUI (runinstaller) or as a standalone tool (deinstall).

If you run the deinstallation tool using runinstaller -deinstall from the installation media, then the help displays unless you enter a -home flag and provide a path to the home directory of the Oracle software to remove from your system.

Use the optional flag -paramfile to provide a path to a response file.

You can generate a deinstallation response file by running the deinstallation tool with the -checkonly flag. Alternatively, you can use the response file template located at DRIVE_LETTER:\> ORACLE_HOME/deinstall/response/deinstall.rsp.tmpl.

In the following example, the deinstall command is in the path C:\app\oracle\product\12.2.0\dbhome_1\deinstall, and it uses a response file in the software owner location C:\Documents and Settings\oracle\:

DRIVE_LETTER:\> cd \app\oracle\product\12.2.0\dbhome_1\deinstall\
DRIVE_LETTER:\> deinstall.bat -paramfile %HOMEPATH%\my_db_paramfile.tmpl

For the grid infrastructure home, use the deinstallation script (deinstall.bat) in the Oracle Restart home, which in this example is C:\app\oracle\product\12.2.0\grid:

DRIVE_LETTER:\> cd \app\oracle\product\12.2.0\grid\deinstall\
DRIVE_LETTER:\> deinstall.bat -paramfile %HOMEPATH%\my_grid_paramfile.tmpl