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>

About these ads

30 Responses to How to remove Oracle 11gR2 on windows 7

  1. Krishna says:

    Its really a good article. Thank you.

  2. Joe Greear says:

    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?

  3. Firas Rashid says:

    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

    • guneserol says:

      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. Maria says:

    Very helpful, thanks!

  5. Pavan says:

    Thanks for the post Gunes :-)

  6. miguel says:

    Thank you very much

  7. Nasser says:

    thank you it was helpful :D

  8. erhan says:

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

  9. Thanks! says:

    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. :)

  10. hic says:

    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. hic says:

    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!!.. ;)

  12. Abi says:

    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

    • Gunes Erol says:

      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%

  13. Abi says:

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

  14. Michael Anker says:

    Worked like a charm. Thank you.

  15. Filip DD says:

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: