deinstall oracle 11g on linux
deinstall oracle 11g on linux
From 11gR2, oracle provide us an deinstall tool. With that now we can easily remove oracle binaries.
从oracle11gR2开始,oracle为我们提供了一个删除工具。现在我们可以很容易的删除oracle的二进制文件。
Below is the step:
node1[oracle]_orcl> cd $ORACLE_HOME
node1[oracle]_orcl> cd deinstall
node1[oracle]_orcl> ls -ltr
-rwxr-xr-x 1 oracle dba 32343 Dec 16 2009 sshUserSetup.sh
-rw-r--r-- 1 oracle dba 409 Aug 18 2010 readme.txt
-rw-r--r-- 1 oracle dba 3466 Aug 18 2010 deinstall.xml
-rwxr-xr-x 1 oracle dba 9780 May 10 2011 bootstrap.pl
-rwxr-xr-x 1 oracle dba 18475 Jun 9 2011 deinstall.pl
drwxr-xr-x 2 oracle dba 4096 Feb 20 11:15 response
drwxr-xr-x 2 oracle dba 4096 Feb 20 11:15 jlib
-rwxr-xr-x 1 oracle dba 9655 Feb 20 11:17 deinstall
node1[oracle]_orcl> ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2012-04-19_01-29-47AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
############### CHECK OPERATION START #######################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /orcl/oracle/product/11.2.0.3
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /orcl/oracle
Checking for existence of central inventory location /orcl/oracle/oraInventory
Checking for sufficient temp space availability on node(s) : 'node1'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2012-04-19_01-29-47AM/logs/netdc_check2012-04-19_01-30-16-AM.log
Specify all Single Instance listeners that are to be de-configured [LISTENER_orcl]:Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2012-04-19_01-29-47AM/logs/databasedc_check2012-04-19_01-31-56-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 [orcl]:
###### For Database 'orcl' ######
Single Instance Database
The diagnostic destination location of the database: /orcl/oracle/dump01/oracle/orcl/diag/rdbms/orcl
Storage type used by the Database:
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/deinstall2012-04-19_01-29-47AM/logs/emcadc_check2012-04-19_01-32-05-AM.log
Checking configuration for database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2012-04-19_01-29-47AM/logs//ocm_check1221.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /orcl/oracle/product/11.2.0.3
Inventory Location where the Oracle home registered is: /orcl/oracle/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER_orcl
The following databases were selected for de-configuration : orcl
Database unique name : orcl
Storage used :
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 and CCR is 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-04-19_01-29-47AM/logs/deinstall_deconfig2012-04-19_01-30-14-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2012-04-19_01-29-47AM/logs/deinstall_deconfig2012-04-19_01-30-14-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall2012-04-19_01-29-47AM/logs/emcadc_clean2012-04-19_01-32-05-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: /tmp/deinstall2012-04-19_01-29-47AM/logs/databasedc_clean2012-04-19_01-32-09-AM.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/deinstall2012-04-19_01-29-47AM/logs/netdc_clean2012-04-19_01-33-54-AM.log
De-configuring Single Instance listener(s): LISTENER_orcl
De-configuring listener: LISTENER_orcl
Stopping listener: LISTENER_orcl
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: LISTENER_orcl
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-04-19_01-29-47AM/logs//ocm_clean1221.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 '/orcl/oracle/product/11.2.0.3' from the central inventory on the local node : Done
Delete directory '/orcl/oracle/product/11.2.0.3' on the local node : Done
Delete directory '/orcl/oracle/oraInventory' on the local node : Done
The Oracle Base directory '/orcl/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/deinstall2012-04-19_01-29-47AM' on node 'node1'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Succe