Skip to content

12c Deinstall for Non-RAC

October 14, 2013

12c De-Install for Non-RAC (Single Instance)

 

Starting with Oracle Database 12c, the deinstallation tool is integrated with the database installation media. You can run the deinstallation tool using the runInstaller command with the -deinstall and -home options from the base directory of the Oracle Database, Oracle Database Client or Oracle Grid Infrastructure installation media.

The deinstallation tool is also available as a separate command (deinstall) in Oracle home directories after installation. It is located in the $ORACLE_HOME/deinstall directory.
mgracsolsrv64bit1:/export/home/oracle: echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0/dbhome_1

mgracsolsrv64bit1:/export/home/oracle: /u01/app/oracle/product/12.1.0/dbhome_1/deinstall/deinstall
Checking for required files and bootstrapping …
Please wait …
cp: /tmp/deinstall2013-10-14_04-30-06PM/lib//libclntsh.so.12.1: No space left on device

ld.so.1: java: fatal: libjli.so: open failed: No such file or directory

**************
Failed due to TEMP /tmp space issue , I cleared OLD deinstall Logs from /tmp ,
Make sure you have 2GB free /tmp disk space
*************

mgracsolsrv64bit1:/export/home/oracle: cd /u01/app/oracle/product/12.1.0/
mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: du -sh *
5.6G   dbhome_1

mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: swap -s
total: 187292k bytes allocated + 38128k reserved = 225420k used, 3130168k available

De-install Again after the above fix
==============================================================================================================

mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: /u01/app/oracle/product/12.1.0/dbhome_1/deinstall/deinstall
Checking for required files and bootstrapping …
Please wait …
Location of logs /tmp/deinstall2013-10-14_04-43-07PM/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/12.1.0/dbhome_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) : ‘mgracsolsrv64bit1’

## [END] Install check configuration ##

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2013-10-14_04-43-07PM/logs/netdc_check2013-10-14_04-47-40-PM.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: /tmp/deinstall2013-10-14_04-43-07PM/logs/databasedc_check2013-10-14_04-49-47-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 [d041,d041dr]:

###### For Database ‘d041dr’ ######

Single Instance Database
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/d041dr
Storage type used by the Database: FS
Database file location: /u02/oradata/d041dr
Fast recovery area location: Does not exist
database spfile location: /u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfiled041dr.ora

The details of database(s) d041dr have been discovered automatically. For database(s) d041 details will be prompted for confirmation. Do you still want to

modify the details of d041dr database(s)? [n]:

###### For Database ‘d041’ ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]:
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/d041]:
Specify the storage type used by the Database ASM|FS []: FS

Specify the list of directories if any database files exist on a shared file system. If ‘d041’ subdirectory is found, then it will be deleted. Otherwise, the specified directory will be deleted. Alternatively, you can specify list of database files with full path [ ]:

Specify the fast recovery area location, if it is configured on the file system. If ‘d041’ subdirectory is found, then it will be deleted. []:

Specify the database spfile location [ ]:

Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2013-10-14_04-43-07PM/logs//ocm_check5494.log
Oracle Configuration Manager check END

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

####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/12.1.0/dbhome_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 : d041,d041dr
Database unique name : d041
Storage used : FS
Database unique name : d041dr
Storage used : FS
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: ‘/tmp/deinstall2013-10-14_04-43-07PM/logs/deinstall_deconfig2013-10-14_04-47-12-PM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2013-10-14_04-43-07PM/logs/deinstall_deconfig2013-10-14_04-47-12-PM.err’

######################## CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2013-10-14_04-43-07PM/logs/databasedc_clean2013-10-14_05-03-13-PM.log
Database Clean Configuration START d041
This operation may take few minutes.
Database Clean Configuration END d041
Database Clean Configuration START d041dr
This operation may take few minutes.
Database Clean Configuration END d041dr

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2013-10-14_04-43-07PM/logs/netdc_clean2013-10-14_05-09-26-PM.log

De-configuring Single Instance listener(s): LISTENER

De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: LISTENER
Listener deleted successfully.
Listener 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

Oracle Configuration Manager clean START
OCM clean log file location : /tmp/deinstall2013-10-14_04-43-07PM/logs//ocm_clean5494.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/12.1.0/dbhome_1’ from the central inventory on the local node : Done

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

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

The Oracle Base directory ‘/u01/app/oracle’ will not be removed on local node. The directory is not empty.

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END

## [START] Oracle install clean ##

Clean install operation removing temporary directory ‘/tmp/deinstall2013-10-14_04-43-07PM’ on node ‘mgracsolsrv64bit1’

## [END] Oracle install clean ##

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

####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : d041,d041dr
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/12.1.0/dbhome_1’ from the central inventory on the local node.
Successfully deleted directory ‘/u01/app/oracle/product/12.1.0/dbhome_1’ on the local node.
Successfully deleted directory ‘/u01/app/oraInventory’ on the local node.
Oracle Universal Installer cleanup was successful.

Run ‘rm -rf /var/opt/oracle/oraInst.loc’ as root on node(s) ‘mgracsolsrv64bit1’ at the end of the session.

Run ‘rm -rf /opt/ORCLfmap’ as root on node(s) ‘mgracsolsrv64bit1’ at the end of the session.
Run ‘rm -rf /var/opt/oracle/oratab’ as root on node(s) ‘mgracsolsrv64bit1’ at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

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

mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: ls -l /var/opt/oracle/oraInst.loc
-rw-r–r–   1 root     root          56 Sep  6 14:35 /var/opt/oracle/oraInst.loc

mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: cat /var/opt/oracle/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall

mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: ls -l /var/opt/oracle/oraInst.loc
-rw-r–r–   1 root     root          56 Sep  6 14:35 /var/opt/oracle/oraInst.loc

mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: rm -rf /var/opt/oracle/oraInst.loc
mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: rm -rf /opt/ORCLfmap
mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: rm -rf /var/opt/oracle/oratab
mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0:
mgracsolsrv64bit1:/u01/app/oracle/product/12.1.0: exit

LOG:
===============

mgracsolsrv64bit1:/tmp: cat Cleanup2013-10-14_05-09-52-PM.log |grep “INFO: Setting variable”INFO: Setting variable ‘ORACLE_HOME’ to ‘/u01/app/oracle/product/12.1.0/dbhome_1’. Received the value from the command line.
INFO: Setting variable ‘ORACLE_BASE’ to ‘/u01/app/oracle’. Received the value from the command line.
INFO: Setting variable ‘LOCAL_NODE’ to ‘mgracsolsrv64bit1’. Received the value from the command line.
INFO: Setting variable ‘INVENTORY_LOCATION’ to ‘/u01/app/oraInventory’. Received the value from a code block.
INFO: Setting variable ‘INVENTORY_LOCATION’ to ‘/u01/app/oraInventory’. Received the value from a code block.
INFO: Setting variable ‘REMOTE_NODES’ to ”. Received the value from a code block.

References:

http://docs.oracle.com/cd/E16655_01/install.121/e17752/remove_oracle_sw.htm

Advertisements

From → 12c

One Comment

Trackbacks & Pingbacks

  1. 12c | Maleshg

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

%d bloggers like this: