How to remove Oracle 11gR2 on windows 7

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

############ 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\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>

Reklam


“How to remove Oracle 11gR2 on windows 7” için 31 cevap

  1. Its really a good article. Thank you.

  2. 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?

    1. Please contact wiht me via my email which is details exist under About Me tab

      Regards
      Gunes

  3. 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

    1. 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]

  4. Very helpful, thanks!

  5. Thanks for the post Gunes 🙂

  6. Thank you very much

  7. thank you it was helpful 😀

  8. there is a file on deinstall folder named deinstall.bat. I think it is enough

  9. 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. 🙂

    1. Hi;

      Nice to hear issue has been solved

      Regards
      Gunes

  10. 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.

  11. 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!!.. 😉

    1. Nice to hear issue solved 😉

      Regards
      Gunes

    1. Thanks for sharing Erhan

  12. 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

    1. 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%

      1. shows error perl deinstaller not found: C:\apps\user\product\11.2\home1\deinstaller\deinstaller

  13. i want to remove all this database stuff, what should i do after that?

    1. 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]

    2. 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.

      1. Thank you Gunes ,oracle 11gR2 is now deinstalled from my computer. Thanks for the support.

  14. Worked like a charm. Thank you.

  15. Super – at least someone who is capable of giving solutions. Thanks ! FIlip

  16. very helpful…. thanks

Filip DD için bir cevap yazın Cevabı iptal et

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Connecting to %s

%d blogcu bunu beğendi: