Monday, May 7, 2012

Uninstall Oracle 11g on Unix/ Remove Oracle 11g Unix

Here is procedure to Uninstall 11g Oracle Home. earlier it used to done by OUI.

DEVL:/u00/app/oracle/product/11.2.0/db_1/deinstall :TEST$./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2012-05-07_07-55-03-AM/logs/

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


######################## CHECK OPERATION START ########################
Install check configuration START


Checking for existence of the Oracle home location /u00/app/oracle/product/11.2.0/db_1
Oracle Home type selected for de-install is: SIDB
Oracle Base selected for de-install is: /u00/app/oracle
Checking for existence of central inventory location /u00/app/oraInventory

Install check configuration END


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2012-05-07_07-55-03-AM/logs/netdc_check8067592795646126333.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/deinstall2012-05-07_07-55-03-AM/logs/databasedc_check8855114124755634650.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 [TEST]:

###### For Database 'TEST' ######

Single Instance Database
The diagnostic destination location of the database: /u00/app/oracle/diag/rdbms/test
Storage type used by the Database: FS
Database file location: /u01/test/data
Flash recovery area location: Does not exist
database spfile location: /u00/app/oracle/product/11.2.0/db_1/dbs/spfileTEST.ora

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

Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2012-05-07_07-55-03-AM/logs/emcadc_check.log

Checking configuration for database TEST
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2012-05-07_07-55-03-AM/logs//ocm_check3012.log
Oracle Configuration Manager check END

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


####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for de-install is: /u00/app/oracle/product/11.2.0/db_1
Inventory Location where the Oracle home registered is: /u00/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected for de-configuration : TEST
Database unique name : TEST
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: '/tmp/deinstall2012-05-07_07-55-03-AM/logs/deinstall_deconfig2012-05-07_07-56-11-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2012-05-07_07-55-03-AM/logs/deinstall_deconfig2012-05-07_07-56-11-AM.err'

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

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2012-05-07_07-55-03-AM/logs/emcadc_clean.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: /tmp/deinstall2012-05-07_07-55-03-AM/logs/databasedc_clean1221138661467301182.log
Database Clean Configuration START TEST
This operation may take few minutes.
Database Clean Configuration END TEST

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2012-05-07_07-55-03-AM/logs/netdc_clean6816269865994649600.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 Listener configuration file...
Listener 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

Oracle Configuration Manager clean START
OCM clean log file location : /tmp/deinstall2012-05-07_07-55-03-AM/logs//ocm_clean3012.log
Oracle Configuration Manager clean END
Oracle Universal Installer clean START

Detach Oracle home '/u00/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done

Delete directory '/u00/app/oracle/product/11.2.0/db_1' on the local node : Done

Delete directory '/u00/app/oraInventory' on the local node : Done

Delete directory '/u00/app/oracle' on the local node : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


Oracle install clean START

Clean install operation removing temporary directory '/tmp/install' on node 'DEVL'

Oracle install clean END

Moved default properties file /tmp/deinstall2012-05-07_07-55-03-AM/response/deinstall_OraDb11g_home1.rsp as /tmp/deinstall2012-05-07_07-55-03-AM/response/deinstall_OraDb11g_home1.rsp0

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


####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : TEST
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 '/u00/app/oracle/product/11.2.0/db_1' from the central inventory on the local node.
Successfully deleted directory '/u00/app/oracle/product/11.2.0/db_1' on the local node.
Successfully deleted directory '/u00/app/oraInventory' on the local node.
Successfully deleted directory '/u00/app/oracle' on the local node.
Oracle Universal Installer cleanup was successful.


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

Oracle install successfully cleaned up the temporary directories.
#######################################################################


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

DEVL:/u00/app/oracle/product/11.2.0/db_1/deinstall :TEST$