卸载oracle 11g数据库软件
卸载oracle,从11g开始使用deinstall卸载数据库软件可以干净卸掉oracle
$ cd $ORACLE_HOME/deinstall
$ ls -l
total 152
-rwxr-xr-x 1 oracle oinstall 9780 May 10 2011 bootstrap.pl
-rwxr-xr-x 1 oracle oinstall 9648 Jun 24 16:30 deinstall
-rwxr-xr-x 1 oracle oinstall 18475 Jun 9 2011 deinstall.pl
-rw-r--r-- 1 oracle oinstall 3466 Aug 18 2010 deinstall.xml
drwxr-xr-x 2 oracle oinstall 96 Jun 24 16:21 jlib
-rw-r--r-- 1 oracle oinstall 409 Aug 18 2010 readme.txt
drwxr-xr-x 2 oracle oinstall 96 Jun 24 16:21 response
-rwxr-xr-x 1 oracle oinstall 32343 Dec 16 2009 sshUserSetup.sh
$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /oracle/app/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /oracle/app/11.2.0/oracle
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /oracle/app/11.2.0
Checking for existence of central inventory location /oracle/app/oraInventory
Checking for sufficient temp space availability on node(s) : 'OFCS2BJ'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_check2015-06-25_09-22-51-AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /oracle/app/oraInventory/logs/databasedc_check2015-06-25_09-22-54-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 []: OFCS2BJ1
###### For Database 'OFCS2BJ1' ######
Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]:
Specify the diagnostic destination location of the database [/oracle/app/11.2.0/diag/rdbms/ofcs2bj1]:
Specify the storage type used by the Database ASM|FS []: ASM
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_check2015-06-25_09-24-08-AM.log
Checking configuration for database OFCS2BJ1
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /oracle/app/oraInventory/logs//ocm_check3994.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /oracle/app/11.2.0/oracle
Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
The following databases were selected for de-configuration : OFCS2BJ1
Database unique name : OFCS2BJ1
Storage used : ASM
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: '/oracle/app/oraInventory/logs/deinstall_deconfig2015-06-25_09-22-46-AM.out'
Any error messages from this session will be written to: '/oracle/app/oraInventory/logs/deinstall_deconfig2015-06-25_09-22-46-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /oracle/app/oraInventory/logs/emcadc_clean2015-06-25_09-24-08-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: /oracle/app/oraInventory/logs/databasedc_clean2015-06-25_09-24-13-AM.log
Database Clean Configuration START OFCS2BJ1
This operation may take few minutes.
Database Clean Configuration END OFCS2BJ1
Network Configuration clean config START
Network de-configuration trace file location: /oracle/app/oraInventory/logs/netdc_clean2015-06-25_09-24-52-AM.log
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 : /oracle/app/oraInventory/logs//ocm_clean3994.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 '/oracle/app/11.2.0/oracle' from the central inventory on the local node : Done
Delete directory '/oracle/app/11.2.0/oracle' on the local node : Done
The Oracle Base directory '/oracle/app/11.2.0' will not be removed on local node. The directory is in use by Oracle Home '/oracle/app/11.2.0/grid'.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/oracle/tmp/deinstall2015-06-25_09-22-06AM' on node 'OFCS2BJ'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : OFCS2BJ1
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 '/oracle/app/11.2.0/oracle' from the central inventory on the local node.
Successfully deleted directory '/oracle/app/11.2.0/oracle' on the local node.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'OFCS2BJ' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
$ exit
logout
OFCS2BJ[/]#rm -rf /opt/ORCLfmap
笔记