How to Un-install/De-install Oracle 11.2.0.3 from Solaris/Linux

Why should we use this utility:

We should use this utility so that each and every entry will be removed which was created while installing the ORACLE_HOME, if we will directly remove the ORACLE_HOME using OS Commands, we may face further issues of the oracle configuration.

Because when we install Oracle Software many files gets created and updated accordingly, so going to each file and delete the entry for this new software will be cumbersome and time consuming. So the faster and safer solution is to use this utility.

First of go to Oracle Site and Download the De-install Utility:

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-sparc64soft-088481.html

Above link is for Sparc Solaris 64 bit version.Image

 

Software name would be like this: solaris64_11203_deinstall.zip

Use WinScp or any other software to place this on Solaris Server. I have placed it under (/u06/oracle/software/11g/deinstall/) and unzip the software which will create a “deinstall” directory in the same folder.

bash-3.00$ ls -lrt
total 283600
drwxr-xr-x 20 oracle dba 512 Sep 30 2011 deinstall
-rw-r–r– 1 oracle dba 145111670 Oct 16 14:08 solaris64_11203_deinstall.zip
bash-3.00$

Go to deinstall directory and locate the utility:

bash-3.00$ cd deinstall/
bash-3.00$
bash-3.00$ ls
assistants crs deinstall diagnostics lib oui response sysman
bin cv deinstall.pl jlib logs perl srvm usm
bootstrap.pl dc_ocm deinstall.xml jre mapfiles readme.txt sshUserSetup.sh utl
bash-3.00$

Before we run this utility, i would like to mention the fact that using this utility we can remove the ORACLE_HOME while putting the option -home with this utility.

Here in this example i am uninstalling the ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/.

This directory – /u01/app/oracle/product/11.2.0.3/ contains the whole software.

Run the utility with the ORACLE_HOME from the deinstall directory:

bash-3.00$ ./deinstall -home /u01/app/oracle/product/11.2.0.3/

Location of logs /u01/app/oracle/oraInventory/logs/

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

######################### CHECK OPERATION START #########################
## [START] Install check configuration ##

Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0.3
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oracle/oraInventory
Checking for sufficient temp space availability on node(s) : ‘llano’

## [END] Install check configuration ##

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oracle/oraInventory/logs/netdc_check2013-10-16_02-16-42-PM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /u01/app/oracle/oraInventory/logs/databasedc_check2013-10-16_02-16-44-PM.log

Use comma as separator when specifying list of values as input

Specify the list of database names that are configured in this Oracle home []:
Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /u01/app/oracle/oraInventory/logs/emcadc_check2013-10-16_02-17-14-PM.log

Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /u01/app/oracle/oraInventory/logs//ocm_check_2013-10-16_02-17-15-PM.log
Oracle Configuration Manager check END

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

####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0.3
Inventory Location where the Oracle home registered is: /u01/app/oracle/oraInventory
No Enterprise Manager configuration to be updated for any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
Do you want to continue (y – yes, n – no)? [n]: y
A log of this session will be written to: ‘/u01/app/oracle/oraInventory/logs/deinstall_deconfig2013-10-16_02-16-28-PM.out’
Any error messages from this session will be written to: ‘/u01/app/oracle/oraInventory/logs/deinstall_deconfig2013-10-16_02-16-28-PM.err’

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

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /u01/app/oracle/oraInventory/logs/emcadc_clean2013-10-16_02-17-14-PM.log

Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: /u01/app/oracle/oraInventory/logs/databasedc_clean2013-10-16_02-18-40-PM.log

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oracle/oraInventory/logs/netdc_clean2013-10-16_02-18-40-PM.log

De-configuring backup files…
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

Oracle Configuration Manager clean START
OCM clean log file location : /u01/app/oracle/oraInventory/logs//ocm_clean_2013-10-16_02-17-15-PM.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home ‘/u01/app/oracle/product/11.2.0.3’ from the central inventory on the local node : Done

Delete directory ‘/u01/app/oracle/product/11.2.0.3’ on the local node : Done

The Oracle Base directory ‘/u01/app/oracle’ will not be removed on local node. The directory is in use by Oracle Home ‘/u01/app/oracle/product/10.2.0’.

The Oracle Base directory ‘/u01/app/oracle’ will not be removed on local node. The directory is in use by central inventory.

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END

## [START] Oracle install clean ##

Clean install operation removing temporary directory ‘/tmp/deinstall2013-10-16_02-16-24PM’ on node ‘llano’

## [END] Oracle install clean ##

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

####################### CLEAN OPERATION SUMMARY #######################
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home ‘/u01/app/oracle/product/11.2.0.3’ from the central inventory on the local node.
Successfully deleted directory ‘/u01/app/oracle/product/11.2.0.3’ on the local node.
Oracle Universal Installer cleanup was successful.

Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

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

bash-3.00$

Check the ORACLE_HOME now, it would have been deleted.

Thanks for viewing.

Advertisements

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