7.3.3.2 Running the Deinstallation Tool Interactively From the Installer

You can run the deinstallation tool from an Oracle home or from the software installation media.

  1. Use the setup.exe command with the -deinstall option, followed by the -home option to specify the path of the Oracle home you want to remove.
    For example:
    setup.exe -deinstall -home C:\app\12.2.0\grid
  2. Provide information about your servers as prompted or accept the defaults.
The deinstallation tool stops Oracle software, and removes Oracle software and configuration files on the operating system.

Example 7-2 Running the Deinstallation Tool from the Software Installation Media

If you run the deinstallation tool from the installer in the installation media, then when the deinstall.bat command runs, it uses the information you provide to determine the system configuration and then provides default values at each prompt. You can either accept the default value, or override it with a different value. If the software in the specified Oracle home is not running (for example, after an unsuccessful install attempt), then the deinstallation tool cannot determine the configuration, and you must provide all the configuration details either interactively or in a response file.

For example, to remove the Oracle Database home dbhome_1 using the deinstallation tool started from the installer, use commands similar to the following while logged in as a member of the Administrator group, where directory_path is the path to the database directory on the installation media:

C:\> cd directory_path 
C:\..database> setup.exe -deinstall -home C:\app\oracle\product\12.2.0\db_home1\

Provide additional information as prompted.

Note:

When using the deinstallation tool from a location other than within the Oracle home being removed, you must specify the -home option on the command line.