How do I completely remove Oracle 11g?
First, use Start -> Run -> Services.msc, locate all Ora* services and stop them.
The rest, from Manual and Clean Uninstall Oracle for Windows :
- Uninstall all Oracle components using the Oracle Universal Installer (OUI).
- Delete the
HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE
(andHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE
on 64bit) key which contains registry entries for all Oracle products by using regedit.- Delete any references to Oracle services/components in the following registry location:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/
. Looks for key entries that starts with “Ora” which are obviously related to Oracle.- Reboot the workstation.
- Delete the ORACLE_BASE directory. (i.e C:\Oracle)
- Delete the directory
C:\Program Files\Oracle
.- Empty the temp directory.
- Empty the recycle bin.
- Remove any oracle entries in the PATH variable under Computer =>Properties => Advanced System Settings => Environment Variaiable => PATH
- In the same place remove the ORACLE_HOME entry
Steps: Stop all Oracle services first.
- START -> RUN -> Services.msc
- Locate all Ora* services & click on STOP
- Start -> RUN -> Regedit
- Locate HKEY_LOCAL_MACHINE folder in the registry
- Open Software folder
- Delete the Oracle folder under Software
- Open System folder in HKEY_LOCAL_MACHINE
- Open CurrentControlSet folder within the System folder
- Open Services
- Delete all keys related to Oracle. Every key starts with “ORA..”
- Close the regedit
- Delete ORACLE_HOME folder
- Delete the Oracle folder in Program Files
- Reboot
I came here because of this message when trying to install Oracle 11g XE, after a previously failed attempt:
"Installer has detected an already existing XE instance on this system. Installation cannot proceed"
Of course I cleaned all according to various sources, including this one, but it kept complaining. It also did not show up in the list of installed programs.
I remembered a very old utility, that was shipped once with Office 2000 I guess. It is called "Windows Installer Clean up utility" (the original download is called msicuu2.exe
). Download it from a trusted source, run it with admin privileges, and you'll probably find an orphaned record for Oracle in the list.
Click [Remove], confirm the warning and proceed with the setup. It worked for me.