In this post i try to explain how we can remove Oracle 11gR2 on windows 7 platform.I see this question sometimes on OTN forum site. Please follow below steps for can remove oracle 11gR2 software on win 7 platform.
Before start, you can find How to install Oracle 11gR2 on Windows 7 using Wmware video tutorial here
First we need to download deinstall tool from oracle site. For tools please click here.
Click See All for the related platform for which you want to download the Deinstallation Tool.
1. Unzip Deinstallation tool on your machine than follow below picture and open cmd session
2. set your Oracle 11gR2 home and than use below syntax:
C:\Windows\system32>d:
D:\>cd download\database\windows\deinstall
D:\>set ORACLE_HOME= D:\oracle\product\11.2.0\client_1
D:\>deinstall -home D:\oracle\product\11.2.0\client_1
#### ORACLE DEINSTALL & DECONFIG TOOL START#####
######## CHECK OPERATION START #######
Install check configuration START
Checking for existence of the Oracle home location D:\product\11.1.0\client_2
Oracle Home type selected for de-install is: CLIENT
Oracle Base selected for de-install is: null
Checking for existence of central inventory location C:\Program Files\Oracle\Inventory
Install check configuration END
Checking Windows and .NET products configuration START
The following Windows and .NET products will be deconfigured from the Oracle home : null
Checking Windows and .NET products configuration END
Network Configuration check config START
Network de-configuration trace file location: D:\download\database\windows\deinstall\logs\netdc_check46301.log
Network Configuration check config END
###### CHECK OPERATION END #######
#### CHECK OPERATION SUMMARY #######
Oracle Home selected for de-install is: D:\product\11.1.0\client_2
Inventory Location where the Oracle home registered is: C:\Program Files\Oracle\Inventory
The following Windows and .NET products will be deconfigured from the Oracle home : null
Do you want to continue (y – yes, n – no)? [n]: y
A log of this session will be written to: ‘D:\download\database\windows\deinstall\\logs\deinstall_deconfig2010-10-27_01-32-50-PM.out’
Any error messages from this session will be written to: ‘D:\download\database\windows\deinstall\\logs\deinstall_deconfig2010-10-27_01-32-50-PM.err’
###### CLEAN OPERATION START #######
Network Configuration clean config START
Network de-configuration trace file location: D:\download\database\windows\deinstall\logs\netdc_clean46302.log
The network configuration has been cleaned up successfully.
Network Configuration clean config END
Removing Windows and .NET products configuration START
Removing Windows and .NET products configuration END
Oracle Universal Installer clean START
Detach Oracle home ‘D:\product\11.1.0\client_2’ from the central inventory on the local node : Done
Failed to delete the file ‘D:\product\11.1.0\client_2\inventory\invDetails.properties’. The file is in use.
Failed to delete the directory ‘D:\product\11.1.0\client_2\inventory’. The directory is not empty.
Failed to delete the file ‘D:\product\11.1.0\client_2\oci.dll’. The file is in use.
Failed to delete the directory ‘D:\product\11.1.0\client_2’. The directory is no t empty.
Delete directory ‘D:\product\11.1.0\client_2’ on the local node : Failed <<<<
Delete directory ‘C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle OraClient11g_home2’ on the local node : Done
Removing oracle home ‘D:\product\11.1.0\client_2’ from PATH variable on the local node : Done
Delete directory ‘C:\Program Files\Oracle\Inventory’ on the local node : Done
Delete directory ‘C:\Program Files\Oracle’ on the local node : Done
Delete Registry key ‘HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc’ on the local node : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
Oracle install clean START
Oracle install clean END
Moved default properties file D:\download\database\windows\deinstall\response\deinstall_OraClient11g_home2.rsp as D:\download\database\windows\deinstall\respons
e\deinstall_OraClient11g_home2.rsp0
##### CLEAN OPERATION END ######
#### CLEAN OPERATION SUMMARY ######
Successfully detached Oracle home ‘D:\product\11.1.0\client_2’ from the central inventory on the local node.
Failed to delete directory ‘D:\product\11.1.0\client_2’ on the local node.
Successfully deleted directory ‘C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle – OraClient11g_home2’ on the local node.
Successfully removed oracle home ‘D:\product\11.1.0\client_2’ from PATH variable on the local node.
Successfully deleted directory ‘C:\Program Files\Oracle\Inventory’ on the local node.
Successfully deleted directory ‘C:\Program Files\Oracle’ on the local node.
Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc’ on the local node.
Oracle Universal Installer cleanup was successful.
Oracle install successfully cleaned up the temporary directories.
##########################
### ORACLE DEINSTALL & DECONFIG TOOL END ####
D:\download\database\windows\deinstall>
Reference:
http://download.oracle.com/docs/cd/E11882_01/install.112/e10843/deinstall.htm#CIHDGGJJ
Install check configuration START
Checking for existence of the Oracle home location D:\product\11.1.0\client_2
Oracle Home type selected for de-install is: CLIENT
Oracle Base selected for de-install is: null
Checking for existence of central inventory location C:\Program Files\Oracle\Inv
entory
Install check configuration END
Checking Windows and .NET products configuration START
The following Windows and .NET products will be deconfigured from the Oracle hom
e : null
Checking Windows and .NET products configuration END
Network Configuration check config START
Network de-configuration trace file location: D:\download\database\windows\deins
tall\logs\netdc_check46301.log
Network Configuration check config END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for de-install is: D:\product\11.1.0\client_2
Inventory Location where the Oracle home registered is: C:\Program Files\Oracle\
Inventory
The following Windows and .NET products will be deconfigured from the Oracle hom
e : null
Do you want to continue (y – yes, n – no)? [n]: y
A log of this session will be written to: ‘D:\download\database\windows\deinstal
l\\logs\deinstall_deconfig2010-10-27_01-32-50-PM.out’
Any error messages from this session will be written to: ‘D:\download\database\w
indows\deinstall\\logs\deinstall_deconfig2010-10-27_01-32-50-PM.err’
######################## CLEAN OPERATION START ########################
Network Configuration clean config START
Network de-configuration trace file location: D:\download\database\windows\deins
tall\logs\netdc_clean46302.log
The network configuration has been cleaned up successfully.
Network Configuration clean config END
Removing Windows and .NET products configuration START
Removing Windows and .NET products configuration END
Oracle Universal Installer clean START
Detach Oracle home ‘D:\product\11.1.0\client_2’ from the central inventory on th
e local node : Done
Failed to delete the file ‘D:\product\11.1.0\client_2\inventory\invDetails.prope
rties’. The file is in use.
Failed to delete the directory ‘D:\product\11.1.0\client_2\inventory’. The direc
tory is not empty.
Failed to delete the file ‘D:\product\11.1.0\client_2\oci.dll’. The file is in u
se.
Failed to delete the directory ‘D:\product\11.1.0\client_2’. The directory is no
t empty.
Delete directory ‘D:\product\11.1.0\client_2’ on the local node : Failed <<<<
Delete directory ‘C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle –
OraClient11g_home2’ on the local node : Done
Removing oracle home ‘D:\product\11.1.0\client_2’ from PATH variable on the loca
l node : Done
Delete directory ‘C:\Program Files\Oracle\Inventory’ on the local node : Done
Delete directory ‘C:\Program Files\Oracle’ on the local node : Done
Delete Registry key ‘HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc’ on the local n
ode : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
Oracle install clean START
Oracle install clean END
Moved default properties file D:\download\database\windows\deinstall\response\de
install_OraClient11g_home2.rsp as D:\download\database\windows\deinstall\respons
e\deinstall_OraClient11g_home2.rsp0
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home ‘D:\product\11.1.0\client_2’ from the central
inventory on the local node.
Failed to delete directory ‘D:\product\11.1.0\client_2’ on the local node.
Successfully deleted directory ‘C:\ProgramData\Microsoft\Windows\Start Menu\Prog
rams\Oracle – OraClient11g_home2’ on the local node.
Successfully removed oracle home ‘D:\product\11.1.0\client_2’ from PATH variable
on the local node.
Successfully deleted directory ‘C:\Program Files\Oracle\Inventory’ on the local
node.
Successfully deleted directory ‘C:\Program Files\Oracle’ on the local node.
Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc’
on the local node.
Oracle Universal Installer cleanup was successful.
Oracle install successfully cleaned up the temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
D:\download\database\windows\deinstall>
31 yorum
Comments feed for this article
Kasım 2, 2010 3:56 pm
Krishna
Its really a good article. Thank you.
Kasım 2, 2010 4:23 pm
guneserol
Your welcome..
Ocak 13, 2011 7:01 pm
Joe Greear
I am a student tying to learn Oracle at a local Comm. College. I installed oracle 11g on my Vista Home edition only to find out it needs Enterprise edition. Now I’m trying to uninstall Oracle. I have tried to follow your instructions but haven’t been able to implement the first command. I have the deinstall folder on my desktop and Oracle is installed on my C drive. Can you help?
Ocak 13, 2011 10:08 pm
guneserol
Please contact wiht me via my email which is details exist under About Me tab
Regards
Gunes
Nisan 13, 2011 11:16 pm
Firas Rashid
Hi,
I am trying to dinstall Oracle 11g client on Windows 7 Enterprise 64-bit but the process hangs when it reaches the following:
Removing Windows and .NET products configuration START
It just hangs there for ever!
Any idea what could be the reason?
Thanks,
Firas
Nisan 14, 2011 2:22 pm
guneserol
Hi Firas;
Please see below notes:
11.2: How to Manually Remove Oracle Server Software on Microsoft Windows Platforms [ID 1069034.1]
WIN: Manually Removing all Oracle Components on Microsoft Windows Platforms [ID 124353.1]
Aralık 19, 2011 3:10 pm
Maria
Very helpful, thanks!
Aralık 19, 2011 10:15 pm
Gunes Erol
Thank you Maria 😉
Ocak 6, 2012 2:03 pm
Pavan
Thanks for the post Gunes 🙂
Ocak 7, 2012 5:48 pm
miguel
Thank you very much
Ocak 15, 2012 9:42 am
Nasser
thank you it was helpful 😀
Nisan 17, 2012 4:42 pm
erhan
there is a file on deinstall folder named deinstall.bat. I think it is enough
Nisan 18, 2012 10:29 pm
Gunes Erol
Hi Erhan;
Please check page 7.2 from http://docs.oracle.com/cd/E11882_01/install.112/e24186.pdf
Regards
Gunes
Mayıs 15, 2012 11:22 am
Thanks!
Thanks for this post. It made me to think of running CMD in Adminstrator mode and then it worked, altough the process was a bit different as described. 🙂
Mayıs 15, 2012 9:50 pm
Gunes Erol
Hi;
Nice to hear issue has been solved
Regards
Gunes
Haziran 13, 2012 8:45 am
hic
It was very useful. But sad thing is that I was not able to deinstall oracle properly. I tried as local user as well as administrator. But both getting stuck at some points and never completed fully.
Haziran 13, 2012 9:16 am
hic
After several unsuccessful efforts of deinstallation, I tried deleting the whole oracle folder itself. That was also failing first. Then I started deleting each individual folders inside the Oracle home. At one place, it failed by showing that this particular file is being used by OracleMTSRecoveryService service. So I just took a command prompt and deleted the service using sc delete “OracleMTSRecoveryService”. Then I did a shift+del of complete oracle folder and its gone!!.. 😉
Haziran 13, 2012 8:54 pm
Gunes Erol
Nice to hear issue solved 😉
Regards
Gunes
Temmuz 3, 2012 4:29 pm
erhanncetinn
http://erhanncetinn.blogspot.com/2011/04/oracle-11g-deinstall-uninstall-kaldirma.html
This is my blog post about that
Temmuz 4, 2012 9:46 pm
Gunes Erol
Thanks for sharing Erhan
Ekim 22, 2012 5:34 pm
Abi
Many thanks.. but i’ve some confusion, I am new to database,wants to work on sql plus. i’ve installed twice oracle database 11gR2 on my win7 32bit . Now, both the databases located in C:>apps/user/product/11.2/home1&home2. i’ve downloaded deinstaller from oracle which is located in C drive in some other folder, How can i set the path?? plz rply
Ekim 23, 2012 10:38 am
Gunes Erol
Hi Abi;
Simply you can use :
set ORACLE_HOME=C:\apps\user\product\11.2\home1 or home2
set ORACLE_SID=xxx
Than you can make control such as
echo %ORACLE_HOME%
echo %ORACLE_SID%
Ekim 23, 2012 3:06 pm
Abi
shows error perl deinstaller not found: C:\apps\user\product\11.2\home1\deinstaller\deinstaller
Ekim 23, 2012 3:22 pm
Abi
i want to remove all this database stuff, what should i do after that?
Ekim 23, 2012 4:35 pm
Gunes Erol
Hi;
I suggest please follow:
11.2: How to Manually Remove Oracle Server Software on Microsoft Windows Platforms [ID 1069034.1]
WIN: Manually Removing all Oracle Components on Microsoft Windows Platforms [ID 124353.1]
Ekim 23, 2012 6:53 pm
erhanncetinn
http://erhanncetinn.blogspot.com/2011/04/oracle-11g-deinstall-uninstall-kaldirma.html
Ekim 24, 2012 9:53 am
Gunes Erol
Steps are already documented, If you don’t have metalink ID than let me know and I will share steps here with you. By the way the recommended way for deinstall is to use deinstall tools. Check deinstall log. Logs will be created under /logs folder. After successful completion check if inventory is updated properly.
Check if OracleHome folder is deleted. If not then you have to remove it manually.
Ekim 26, 2012 10:11 am
Abi
Thank you Gunes ,oracle 11gR2 is now deinstalled from my computer. Thanks for the support.
Ocak 17, 2013 12:37 pm
Michael Anker
Worked like a charm. Thank you.
Ocak 31, 2013 12:44 pm
Filip DD
Super – at least someone who is capable of giving solutions. Thanks ! FIlip
Şubat 17, 2016 4:34 pm
Jesus
very helpful…. thanks