How do I completely remove Oracle 11g?

190

Solution 1

First, use Start -> Run -> Services.msc, locate all Ora* services and stop them.

The rest, from Manual and Clean Uninstall Oracle for Windows :

  1. Uninstall all Oracle components using the Oracle Universal Installer (OUI).
  2. Delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE (and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE on 64bit) key which contains registry entries for all Oracle products by using regedit.
  3. 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.
  4. Reboot the workstation.
  5. Delete the ORACLE_BASE directory. (i.e C:\Oracle)
  6. Delete the directory C:\Program Files\Oracle.
  7. Empty the temp directory.
  8. Empty the recycle bin.

Solution 2

  1. Remove any oracle entries in the PATH variable under Computer =>Properties => Advanced System Settings => Environment Variaiable => PATH
  2. In the same place remove the ORACLE_HOME entry

Solution 3

Steps: Stop all Oracle services first.

  1. START -> RUN -> Services.msc
  2. Locate all Ora* services & click on STOP
  3. Start -> RUN -> Regedit
  4. Locate HKEY_LOCAL_MACHINE folder in the registry
  5. Open Software folder
  6. Delete the Oracle folder under Software
  7. Open System folder in HKEY_LOCAL_MACHINE
  8. Open CurrentControlSet folder within the System folder
  9. Open Services
  10. Delete all keys related to Oracle. Every key starts with “ORA..”
  11. Close the regedit
  12. Delete ORACLE_HOME folder
  13. Delete the Oracle folder in Program Files
  14. Reboot

Solution 4

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"

error message

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.

enter image description here

Click [Remove], confirm the warning and proceed with the setup. It worked for me.

Share:
190

Related videos on Youtube

Jason
Author by

Jason

Updated on September 17, 2022

Comments

  • Jason
    Jason almost 2 years

    I'm copying some folders with grunt-contrib-copy. I'm trying to exclude a subdirectory in the root. I can prevent the contents of the _sprites folder from being copied, but inevitably the sprites copy is always copied. How do I prevent the folder from being copied? Here is what I have:

    ...
    copy: {
        deploy: {
            cwd: "src/",
            expand: true,
            src: [
                "**/*",
                "!**/_sprites/**/*"
            ],
            dest: "deploy/"
        }
    },
    ...
    

    I've attempted !_sprites, !_sprites/ and others, but none appear to yield the results I want.

  • Richard Ev
    Richard Ev almost 11 years
    That link no longer works...
  • harrymc
    harrymc almost 11 years
    @RichardEv: I fixed the link, but it doesn't contain much more info than the above.
  • Dao Minh Thu
    Dao Minh Thu about 9 years
    I have a tip: press Ctrl + R, press: SystemPropertiesAdvanced to open dialog, preparing for edit environment variables. Remember delete more: ORACLE_UID. Look for all keyword Oracle in Registry.
  • user1696603
    user1696603 about 9 years
    +1 for the stop Ora* services ramoh, but everything else is covered by earlier answer from @harrymc.
  • user1696603
    user1696603 about 9 years
    @DoNhuVy means [winkey]+[R], to open the "Run" dialog
  • Dao Minh Thu
    Dao Minh Thu about 9 years
    yes, I have a mistake.