How to DeInstall 11.2.0.4 Database Software in Linux x86_64

Get the software from the below link:

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html

Unzip the software and we will be getting deinstall directory. Go to deinstall directory and run the command to uninstall the Oracle Home along with Database Instance and Listener.

[oracle@grid2 software]$ cd deinstall/
[oracle@grid2 deinstall]$ ls -lrt
total 156
drwxr-xr-x. 4 oracle dba 4096 Aug 26 2013 assistants
drwxr-xr-x. 3 oracle dba 4096 Aug 26 2013 crs
-r-xr-xr-x. 1 oracle dba 9780 Aug 26 2013 bootstrap.pl
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 bin
drwxr-xr-x. 3 oracle dba 4096 Aug 26 2013 diagnostics
-r-xr-xr-x. 1 oracle dba 3466 Aug 26 2013 deinstall.xml
-r-xr-xr-x. 1 oracle dba 18841 Aug 26 2013 deinstall.pl
-rwxr-xr-x. 1 oracle dba 9648 Aug 26 2013 deinstall
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 dc_ocm
drwxr-xr-x. 5 oracle dba 4096 Aug 26 2013 cv
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 jlib
drwxr-xr-x. 4 oracle dba 4096 Aug 26 2013 jre
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 mapfiles
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 logs
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 lib
drwxr-xr-x. 7 oracle dba 4096 Aug 26 2013 oui
drwxr-xr-x. 3 oracle dba 4096 Aug 26 2013 usm
drwxr-xr-x. 4 oracle dba 4096 Aug 26 2013 sysman
-r-xr-xr-x. 1 oracle dba 32343 Aug 26 2013 sshUserSetup.sh
drwxr-xr-x. 3 oracle dba 4096 Aug 26 2013 srvm
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 response
-r-xr-xr-x. 1 oracle dba 409 Aug 26 2013 readme.txt
drwxr-xr-x. 8 oracle dba 4096 Aug 26 2013 perl
drwxr-xr-x. 2 oracle dba 4096 Aug 26 2013 utl
[oracle@grid2 deinstall]$
[oracle@grid2 deinstall]$
[oracle@grid2 deinstall]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db_1
[oracle@grid2 deinstall]$
[oracle@grid2 deinstall]$ ./deinstall -home $ORACLE_HOME
Location of logs /home/oracle/software/deinstall/./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/db_1
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/oraInventory
Checking for sufficient temp space availability on node(s) : ‘grid2.ad.cocc.edu’

## [END] Install check configuration ##
Network Configuration check config START

Network de-configuration trace file location: /home/oracle/software/deinstall/./logs/netdc_check2015-03-05_11-21-01-AM.log

Specify all Single Instance listeners that are to be de-configured [LISTENER]:

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /home/oracle/software/deinstall/./logs/databasedc_check2015-03-05_11-21-28-AM.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 [grid]:

###### For Database ‘grid’ ######

Single Instance Database
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/grid
Storage type used by the Database: FS
Database file location: /u01/app/oracle/oradata/grid,/u01/app/oracle/fast_recovery_area/grid
Fast recovery area location: /u01/app/oracle/fast_recovery_area/GRID
database spfile location: /u01/app/oracle/product/11.2.0/db_1/dbs/spfilegrid.ora

The details of database(s) grid have been discovered automatically. Do you still want to modify the details of grid database(s)? [n]:

Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /home/oracle/software/deinstall/./logs/emcadc_check2015-03-05_11-22-06-AM.log

Checking configuration for database grid
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /home/oracle/software/deinstall/./logs//ocm_check_2015-03-05_11-22-06-AM.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/db_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected for de-configuration : grid
Database unique name : grid
Storage used : FS
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: ‘/home/oracle/software/deinstall/./logs/deinstall_deconfig2015-03-05_11-20-58-AM.out’
Any error messages from this session will be written to: ‘/home/oracle/software/deinstall/./logs/deinstall_deconfig2015-03-05_11-20-58-AM.err’

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

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /home/oracle/software/deinstall/./logs/emcadc_clean2015-03-05_11-22-06-AM.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: /home/oracle/software/deinstall/./logs/databasedc_clean2015-03-05_11-22-24-AM.log
Database Clean Configuration START grid
This operation may take few minutes.
Database Clean Configuration END grid

Network Configuration clean config START

Network de-configuration trace file location: /home/oracle/software/deinstall/./logs/netdc_clean2015-03-05_11-23-09-AM.log

De-configuring Single Instance listener(s): LISTENER

De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.

De-configuring Naming Methods configuration file…
Naming Methods 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

Oracle Configuration Manager clean START
OCM clean log file location : /home/oracle/software/deinstall/./logs//ocm_clean_2015-03-05_11-22-06-AM.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/db_1’ from the central inventory on the local node : Done

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

Delete directory ‘/u01/app/oraInventory’ on the local node : Done

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

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END
## [START] Oracle install clean ##

Clean install operation removing temporary directory ‘/tmp/deinstall2015-03-05_11-20-58AM’ on node ‘grid2’

## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : grid
Following Single Instance listener(s) were de-configured successfully: LISTENER
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/db_1’ from the central inventory on the local node.
Successfully deleted directory ‘/u01/app/oracle/product/11.2.0/db_1’ on the local node.
Successfully deleted directory ‘/u01/app/oraInventory’ on the local node.
Successfully deleted directory ‘/u01/app/oracle’ on the local node.
Oracle Universal Installer cleanup was successful.
Run ‘rm -rf /etc/oraInst.loc’ as root on node(s) ‘grid2’ at the end of the session.

Run ‘rm -rf /opt/ORCLfmap’ as root on node(s) ‘grid2’ at the end of the session.
Run ‘rm -rf /etc/oratab’ as root on node(s) ‘grid2’ at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############

[oracle@grid2 deinstall]$
[oracle@grid2 deinstall]$

Verify the instance, now its has been deleted:

[oracle@grid2 deinstall]$ ps -eaf|grep ora_
oracle 7442 22770 0 11:31 pts/0 00:00:00 grep ora_
[oracle@grid2 deinstall]$
[oracle@grid2 deinstall]$

Check the ORACLE_HOME as well:

[oracle@grid2 deinstall]$ cd $ORACLE_HOME
-bash: cd: /u01/app/oracle/product/11.2.0/db_1: No such file or directory
[oracle@grid2 deinstall]$
[oracle@grid2 deinstall]$ cd /u01/app/
[oracle@grid2 app]$ ls -lrt
total 0
[oracle@grid2 app]$
[oracle@grid2 app]$

Remove below three files as well as per the last O/P from the script:

Run ‘rm -rf /etc/oraInst.loc’ as root on node(s) ‘grid2’ at the end of the session.

Run ‘rm -rf /opt/ORCLfmap’ as root on node(s) ‘grid2’ at the end of the session.
Run ‘rm -rf /etc/oratab’ as root on node(s) ‘grid2’ at the end of the session.

[root@grid2 ~]# rm -rf /etc/oraInst.loc
[root@grid2 ~]# rm -rf /opt/ORCLfmap
[root@grid2 ~]# rm -rf /etc/oratab

Now we are finally done. Thanks for watching. Let us know if there is any question.

Hope it helps…

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