Home > Oracle Basics > Uninstalling oracle software – Windows

Uninstalling oracle software – Windows


There are many ways of uninstalling an oracle software,

1. Manual

2.Universal installer

3. De-install tool

1. Manual Deletion:

  • Take backup of windows registry
  • Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/Oracle key. This contains registry entires for all Oracle products.
  • If you are running 64-bit Windows, you should also delete the HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Oracle key if it exists.
  • Delete any references to Oracle services left behind in the following part of the registry (HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*).
  • Delete the “C:\Oracle” directory, or whatever directory is your ORACLE_BASE.
  • Delete the “C:\Program Files\Oracle” directory.
  • If you are running 64-bit Wiindows, you should also delete the “C:\Program Files (x86)\Oracle” directory.
  • If some DLLs can’t be deleted, try renaming them, then after a reboot delete them.
  • Update environment variables like PATH,ORACLE_HOME & ORACLE_SID
  • Empty the contents of your “C:\temp” directory.
  • Empty your recycle bin.
  • Reboot your machine.

With this we have removed the traces of oracle software entirely from the system

 

2.Universal Installer (Will not work with 11g instead use Deinstall tool)

Oracle Universal Installer creates Windows services for Oracle components during installation. However, Oracle Universal Installer does not delete all the services created by Oracle Net Configuration Assistant.

Steps to remove components on a Windows computer with Oracle Universal Installer:

1. Stop oracle services

Run-> services.msc will open services window and stop all the oracle related services
2. Start Oracle Universal Installer. The start procedure depends on which version of Oracle Database Client you installed.

If you installed the Administrator, Runtime, or Custom versions of Oracle Database Client, then Oracle Universal Installer was also installed. From the Start menu, choose Programs, then Oracle – HOME_NAME, then Oracle Installation Products, then Universal Installer. The Welcome screen for Oracle Universal Installer appears.

If you installed the Instant Client version of Oracle Database Client, Oracle Universal Installer was not installed. Instead, run it from your installation media or the installation directory you created for downloaded or copied installation files.

3. After the start of Oracle Universal Installer,    Click the Deinstall Products button.

The Inventory screen appears.

4.    Select the Oracle home you wish to remove. Expand the tree of installed components only if you want to remove selected components of    an Oracle home.

For example, if you installed Oracle Database Client with the Runtime option and later installed additional components with the Custom option, then expand the Oracle home component to display all the components installed in the Oracle home.

5.  Check the boxes of components to remove.

Click Remove.

The Confirmation screen appears.

6. Click Yes to remove the selected components.

Note:
A message may appear indicating that removing some components may cause other components to not function properly.

After the components are removed from your computer, the Inventory screen appears without the removed components.

7. Click Close to close the Inventory screen.

8.  Click Cancel to exit Oracle Universal Installer.

9.  Click Yes to confirm that you want to exit.

10. Now remove registry keys and other stuff as specified in manual uninstallation section above

Taken from here

 

Using De-install tool(From 11g onwards)

Oracle 11g doesn’t allow you uninstall oracle database components using Universtall installer instead we need to use de-install tool.

If it’s a clean installation this tool is available under ORACLE_HOME/deinstall folder else we need to download it from the site.

De-install tool will remove all the components,registry keys and the related directories. Check below for the output

 

C:\app\root\product\11.2.0\client_1\deinstall>deinstall.bat

Checking for required files and bootstrapping …

Please wait …

1 file(s) copied.

1 file(s) copied.

Location of logs C:\Users\root\logs\

 

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

 

 

######################### CHECK OPERATION START #########################

## [START] Install check configuration ##

 

 

Checking for existence of the Oracle home location C:\app\root\product\11.2.0\client_1

Oracle Home type selected for deinstall is: Oracle Database Client

Oracle Base selected for deinstall is: C:\app\root

Checking for existence of central inventory location C:\Program Files\Oracle\Inventory

 

## [END] Install check configuration ##

 

## [START] Checking Windows and .NET products configuration ##

 

 

The following Windows and .NET products will be deconfigured from the Oracle home : asp.net,odp.net,ntoledb

 

## [END] Checking Windows and .NET products configuration ##

 

 

Network Configuration check config START

 

Network de-configuration trace file location: C:\Users\root\logs\netdc_check2013-05-11_03-39-08-PM.log

 

Network Configuration check config END

 

 

######################### CHECK OPERATION END #########################

 

 

####################### CHECK OPERATION SUMMARY #######################

Oracle Home selected for deinstall is: C:\app\root\product\11.2.0\client_1

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 : asp.net,odp.net,ntoledb

Do you want to continue (y – yes, n – no)? [n]: y

A log of this session will be written to: ‘C:\Users\root\logs\deinstall_deconfig2013-05-11_03-39-00-PM.out’

Any error messages from this session will be written to: ‘C:\Users\root\logs\deinstall_deconfig2013-05-11_03-39-00-PM.err’

 

######################## CLEAN OPERATION START ########################

 

Network Configuration clean config START

 

Network de-configuration trace file location: C:\Users\root\logs\netdc_clean2013-05-11_03-40-13-PM.log

 

De-configuring Naming Methods configuration file…

Naming Methods configuration file de-configured successfully.

 

De-configuring Local Net Service Names configuration file…

Local Net Service Names configuration file de-configured successfully.

 

De-configuring backup files…

Backup files de-configured successfully.

 

The network configuration has been cleaned up successfully.

 

Network Configuration clean config END

 

## [START] Removing Windows and .NET products configuration ##

 

 

## [END] Removing Windows and .NET products configuration ##

Setting the force flag to false

Setting the force flag to cleanup the Oracle Base

Oracle Universal Installer clean START

 

Detach Oracle home ‘C:\app\root\product\11.2.0\client_1’ from the central inventory on the local node : Done

 

Delete directory ‘C:\app\root\product\11.2.0\client_1’ on the local node : Done

 

Delete directory ‘C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle – OraClient11g_home1’ on the local node : Done

 

Removing oracle home ‘C:\app\root\product\11.2.0\client_1’ from PATH variable on the local node : Done

 

Delete directory ‘C:\Program Files\Oracle\Inventory’ on the local node : Done

 

Delete Registry key ‘HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc’ on the local node : Done

 

Delete Registry key ‘HKEY_LOCAL_MACHINE\Software\\Oracle\\ODP.NET’ on the local node : Done

 

Delete Registry key ‘HKEY_LOCAL_MACHINE\Software\\Oracle\\OracleMTSRecoveryService’ on the local node : Done

 

Delete Registry key ‘HKEY_LOCAL_MACHINE\Software\\Oracle\\_DosLinks’ on the local node : Done

 

Delete Registry key ‘HKEY_LOCAL_MACHINE\System\\CurrentControlSet\\Services\\Oracle11’ on the local node : Done

 

Delete directory ‘C:\app\root’ on the local node : Done

 

Oracle Universal Installer cleanup was successful.

 

Oracle Universal Installer clean END

 

 

## [START] Oracle install clean ##

 

 

## [END] Oracle install clean ##

 

 

######################### CLEAN OPERATION END #########################

 

 

####################### CLEAN OPERATION SUMMARY #######################

Removed asp.net configuration

Removed odp.net configuration

Removed ntoledb configuration

Successfully detached Oracle home ‘C:\app\root\product\11.2.0\client_1’ from the central inventory on the local node.

Successfully deleted directory ‘C:\app\root\product\11.2.0\client_1’ on the local node.

Successfully deleted directory ‘C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle – OraClient11g_home1’ on the local node.

Successfully removed oracle home ‘C:\app\root\product\11.2.0\client_1’ from PATH variable on the local node.

Successfully deleted directory ‘C:\Program Files\Oracle\Inventory’ on the local node.

Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc’ on the local node.

Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\Software\\Oracle\\ODP.NET’ on the local node.

Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\Software\\Oracle\\OracleMTSRecoveryService’ on the local node.

Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\Software\\Oracle\\_DosLinks’ on the local node.

Successfully deleted Registry key ‘HKEY_LOCAL_MACHINE\System\\CurrentControlSet\\Services\\Oracle11’ on the local node.

Successfully deleted directory ‘C:\app\root’ on the local node.

Oracle Universal Installer cleanup was successful.

 

Oracle deinstall tool successfully cleaned up temporary directories.

#######################################################################

 

 

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

 

1 dir(s) moved.

1 dir(s) moved.

 

C:\Users\root\AppData\Local\Temp>

 

 

 

 

 

Advertisements
Categories: Oracle Basics Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

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

Oracle database internals by Riyaj

Discussions about Oracle performance tuning, RAC, Oracle internal & E-business suite.

StartupForce

Where all the Action Is !!!!

Pavan DBA's Blog

The DBA Knowledge Store

ORACLE-BASE - Latest Articles

Where all the Action Is !!!!

%d bloggers like this: