Search This Blog

Thursday, December 22, 2011

Oracle 11gR2 Deinstall tool.

Before 11gR2 Uninstalling the Oracle software was really
a pain both on windows as well as on linux platforms.

But now Oracle 11gR2 with comes with aa awesome tool 'Oracle Deinstall utiliy'.

Just execute one simple command answer a couple of questions
and you can remove your whole Oracle software along with your database
and listeners.

[oracle@ora ~]# cd /$ORACLE_HOME/deinstall

[oracle@deinstall ~]# ./deinstall
 

Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2011-12-22_05-25-18-PM/logs/

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


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


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

Install check configuration END


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2011-12-22_05-25-18-PM/logs/netdc_check7575421016999532757.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/deinstall2011-12-22_05-25-18-PM/logs/databasedc_check4883681605319083555.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 [orcl]:
###### For Database 'orcl' ######

Single Instance Database
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/orcl
Storage type used by the Database: FS
Database file location: /u01/app/oracle/oradata/orcl,/u01/app/oracle/flash_recovery_area/orcl
Flash recovery area location: /u01/app/oracle/flash_recovery_area/ORCL
database spfile location: /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora

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

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2011-12-22_05-25-18-PM/logs/emcadc_check.log

Checking configuration for database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2011-12-22_05-25-18-PM/logs//ocm_check9231.log
Oracle Configuration Manager check END

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


####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for de-install 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 : orcl
Database unique name : orcl
Storage used : FS
Will update the Enterprise Manager configuration for the following database(s): orcl
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]: A log of this session will be written to: '/tmp/deinstall2011-12-22_05-25-18-PM/logs/deinstall_deconfig2011-12-22_05-27-43-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2011-12-22_05-25-18-PM/logs/deinstall_deconfig2011-12-22_05-27-43-PM.err'

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

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2011-12-22_05-25-18-PM/logs/emcadc_clean.log

Updating Enterprise Manager Database Control configuration for database orcl
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/deinstall2011-12-22_05-25-18-PM/logs/databasedc_clean2606555855308844874.log
Database Clean Configuration START orcl
This operation may take few minutes.
Database Clean Configuration END orcl

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2011-12-22_05-25-18-PM/logs/netdc_clean1129134055479043466.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 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/deinstall2011-12-22_05-25-18-PM/logs//ocm_clean9231.log
Oracle Configuration Manager clean END
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


Oracle install clean START

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

Oracle install clean END

Moved default properties file /tmp/deinstall2011-12-22_05-25-18-PM/response/deinstall_OraDb11g_home1.rsp as /tmp/deinstall2011-12-22_05-25-18-PM/response/deinstall_OraDb11g_home1.rsp1

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


####################### CLEAN OPERATION SUMMARY #######################
Updated Enterprise Manager configuration for database orcl
Successfully de-configured the following database instances : orcl
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) 'canada' at the end of the session.

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


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


0 comments:

Post a Comment