Oracle 11gR2 RAC的卸载,有了一个很好用的工具deinstall。刚好这两天有一个这样的机会,在此记录一下。
一 DBCA卸载数据库
/home/oracle> dbca
以上操作后,删除数据库。
二 Oracle用户执行deinstall
使用Oracle用户登录任意节点,执行deinstall
cd $ORACLE_HOME/deinstall
./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/TEST/grid/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/TEST/racdb/11.2.0
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /u01/TEST/racdb
Checking for existence of central inventory location /u01/TEST/grid/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/TEST/grid/11.2.0
The following nodes are part of this cluster: test01,test02
Checking for sufficient temp space availability on node(s) : 'test01,test02'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/TEST/grid/oraInventory/logs/netdc_check2014-01-13_09-55-53-AM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER_OFPRD]:
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /u01/TEST/grid/oraInventory/logs/databasedc_check2014-01-13_09-58-57-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 []:
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /u01/TEST/grid/oraInventory/logs/emcadc_check2014-01-13_09-59-41-AM.log
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /u01/TEST/grid/oraInventory/logs//ocm_check6301.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/TEST/grid/11.2.0
The cluster node(s) on which the Oracle home deinstallation will be performed are:test01,test02
Oracle Home selected for deinstall is: /u01/TEST/racdb/11.2.0
Inventory Location where the Oracle home registered is: /u01/TEST/grid/oraInventory
Following RAC listener(s) will be de-configured: LISTENER_OFPRD
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
test01 : Oracle Home exists with CCR directory, but CCR is not configured
test02 : 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: '/u01/TEST/grid/oraInventory/logs/deinstall_deconfig2014-01-13_09-55-39-AM.out'
Any error messages from this session will be written to: '/u01/TEST/grid/oraInventory/logs/deinstall_deconfig2014-01-13_09-55-39-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /u01/TEST/grid/oraInventory/logs/emcadc_clean2014-01-13_09-59-41-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: /u01/TEST/grid/oraInventory/logs/databasedc_clean2014-01-13_10-01-17-AM.log
Network Configuration clean config START
Network de-configuration trace file location: /u01/TEST/grid/oraInventory/logs/netdc_clean2014-01-13_10-01-17-AM.log
De-configuring RAC listener(s): LISTENER_OFPRD
De-configuring listener: LISTENER_OFPRD
Stopping listener: LISTENER_OFPRD
Listener stopped successfully.
Unregistering listener: LISTENER_O