Deinstalling Oracle Software on Windows

In some cases you need to deinstall your Oracle Software (to install Oracle Software please read How to Install Oracle Instance article).

In this article I will show you uninstallation process on Oracle 11.2.0.4 on Windows. To uninstall Oracle on UNIX you can read this article: Deinstalling Oracle Software on UNIX.

Note:

Please read SAP note “1591580 – Oracle 11.2.0: Oracle Home administration on Windows” for updated procedure and tool.

Below are the steps to deinstall your oracle on Windows:

1. Backup your Oracle Inventory (usually located on C:\Program Files\Oracle\Inventory folder). You can use Compressed Folder or Zip tool to backup this folder.

2. Check whether your Oracle Home is registered in the Oracle Inventory.

#> %ORACLE_HOME%\OPatch\opatch.bat lsinventory -all

uninstall-oracle-windows-004

If your Oracle Home registered, it will appear in the Displayed “List of Oracle Homes”. Oracle Home must be registered in order to detach it.

3. Now Detach Oracle Home from Oracle Inventory

#> cd %ORACLE_HOME%\oui\bin\
#> .\detachHome.bat

uninstall-oracle-windows-009

Make sure detach is finished successfully.

4. Now you check again the Oracle Home

#> %ORACLE_HOME%\OPatch\opatch.bat lsinventory -all

uninstall-oracle-windows-010

Now you see that the Oracle Home that you want to delete doesn’t exist anymore.

5. Now you call tool deinstall.bat to completely remove your Oracle Installation.

#> cd %ORACLE_HOME%\deinstall
#> \.deinstall.bat

uninstall-oracle-windows-015

Enter [1] as your input and ENTER.

6. You will be asked some parameters here:

uninstall-oracle-windows-016

uninstall-oracle-windows-017

uninstall-oracle-windows-018

uninstall-oracle-windows-019

Fill the appropriate parameters until the last parameter.

7. Now the tool will uninstall and clean your Oracle.

uninstall-oracle-windows-020a

Make sure the process is finished successfully.

8. After that you can test by calling any oracle tools.

Example:

tnsping <SID>

uninstall-oracle-windows-021

Now the Oracle installation has gone from your server.

Leave a Reply