How do I do a manual uninstall of Oracle?
Asked Answered
S

7

20

Sometimes my Oracle database on Windows gets hosed. How do I do a manual uninstall of Oracle?

Symbolism answered 17/9, 2008 at 14:41 Comment(2)
Do you want to deinstall the software, or drop the database?Haimes
Please define "hosed" in this case. You should not have to uninstall or reinstall Oracle.Ninetta
N
51

The six-step process to remove all things Oracle from a Windows machine:

A. Delete the Oracle services: In the registry, go to \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete everything that starts with "Oracle"

B. Remove other Oracle stuff from the registry: Go to \HKEY_LOCAL_MACHINE\SOFTWARE\ and delete the key ORACLE

C. Reboot

D. Delete all the Oracle software from the directories where you installed it

E. Delete the Oracle software inventory: Delete the directory C:\Program Files\Oracle. You must do this no matter where you installed your Oracle software - the Oracle installer automatically writes information here.

F. Delete all shortcuts from your Start menu.

G. Remove the Oracle directories from PATH Environment Variable.

To simplify cleanup in the future, I'd strongly recommend you install your Oracle products in one or more virtual machines.

Necessity answered 17/9, 2008 at 19:13 Comment(2)
An additional step that was required for me before step D: stop the Distributed Transaction Coordinator service.Sadowski
What about the Windows accounts that it has created?Brachiate
G
4

Have a look at:

http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php

Basically, it comes down to:

Remove all you can with the installer. Remove Oracle keys from the registry. Remove the Oracle directories from your computer.

With (of course) the requisite reboots thrown in as required ;-)

Genocide answered 17/9, 2008 at 18:8 Comment(0)
G
4

It's worth noting that there is an official Oracle standalone deinstaller: https://docs.oracle.com/cd/E11882_01/install.112/e47689/remove_oracle_sw.htm#LADBI1332, which I just used to uninstall Oracle 11 client. This is not necessarily better or easier to use than the top suggestion on this page, but it is "official".

One thing to note - if you use the official deinstaller, it does not like the temp folder to have spaces in it. So if you have it set to "Documents and Settings...\temp" it will fail. Use the control panel environment settings button to SET the TEMP folder first.

Gaughan answered 18/5, 2011 at 12:9 Comment(1)
you can find the info on the deinstaller at this link: docs.oracle.com/cd/E11882_01/install.112/e47689/…Cutlery
B
3

Uninstall Oracle 10g from window 7, Xp

step 1 : Open up the start menu and in program files look for oracle – oraDb10g_home folder, and select oracle installation products – > Universal Installer.

step 2 : Select Deinstall Product, which will pop up new window , select check box oracleDb10g_home1 as shown below. Click on remove button. This will remove oracle.

step 3 : Remove the registration file from Regedit, in order to remove oracle 10g completely. Run Regedit.

Delete the following keys if it exits after the un-installation.

HKEY_CURRENT_USER\SOFTWARE\ORACLE HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\Oracle.oracle HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsole HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle10g_home HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OraclService

step 4 : Now delete the folder where you have installed the software. By default, it is installed in c drive as C:\oracle and from C:\programs files\oracle.

Hence by doing this steps successfully, Oracle 10g is removed completely. If you are having any problem in removing or uninstalling the program,(oracle ) then do comment below, we will look on that.

Barkley answered 8/1, 2014 at 13:39 Comment(0)
C
1

The tips for using a VM enviroment is the best: no worries about deinstalling. Just install a complete Oracle enviroment and after one succesfull run: winrar the VM ... after corrupting the Oracle home once again: just delete the current VM and unrar the backup

Crowberry answered 18/9, 2008 at 13:28 Comment(0)
C
0

This seems way too simple, but in Windows I was able to uninstall Oracle by going into Settings > Apps and Features finding the Oracle database clicking it and then uninstall. I didn't even need a password.

Concoct answered 15/2, 2020 at 21:41 Comment(0)
O
-3

Assuming a unix type OS and that you properly installed it using an account named oracle...

find / -user oracle -exec rm -fr {} \;

That having been said, this must be done as root and you had better not mind loss of any and all files that belong to oracle. There will be no... NO recovery from this method.

Ornithopod answered 17/9, 2008 at 15:3 Comment(3)
He does say, Oracle database on Windows, in the question. Although maybe not originally. How DO you see the history?Weksler
He edited in Windows after I saw it. Even so, cygwin would make my answer work.Ornithopod
To see the history, click on the date/timestamp next to the word edited.Ornithopod

© 2022 - 2024 — McMap. All rights reserved.