[grid@yozhan1 ~]$ cd $ORACLE_HOME[grid@yozhan1grid]$ cd deinstall
[grid@yozhan1deinstall]$ ls
deinstall deinstall.xml jlib response sshUserSetup.sh
[grid@yozhan1 deinstall]$ ./deinstall
Checkingfor required files and bootstrapping ...Pleasewait ...Location of logs/tmp/deinstall2014-08-30_11-39-59-AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checkingfor existence of the Oracle home location /g01/grid/app/11.2.0/grid
Oracle Home type selectedfor de-install is:CRS
Oracle Base selectedfor de-install is: /g01/grid/app/grid
Checkingfor existence of central inventory location /g01/grid/app/oraInventory
Checkingfor existence of the Oracle Grid Infrastructure home /g01/grid/app/11.2.0/grid
The following nodes are part of this cluster: yozhan1,yozhan2
Install check configuration END
Traceslog file: /tmp/deinstall2014-08-30_11-39-59-AM/logs//crsdc.logNetwork Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2014-08-30_11-39-59-AM/logs/netdc_check232761228034560801.logSpecify all RAC listeners that are to be de-configured [LISTENER]: #这里需要交互,一般情况下,默认的是listenerNetwork Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2014-08-30_11-39-59-AM/logs/asmcadc_check9217983085951893702.logAutomatic Storage Management (ASM) instance is detected in this Oracle home/g01/grid/app/11.2.0/grid.ASM Diagnostic Destination: /g01/grid/app/grid
ASM Diskgroups: +BACKUP,+DATA,+DG_EXT1,+SYSTEMDG
Diskgroups will be dropped
De-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).
#这里提示de-configuring asm将会清除所有数据包括磁盘组,如果需要保留磁盘组,输入y,否则输入n。这里我们不需要保留磁盘组,因此输入n
If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering'y'. Do you want to modify above information (y|n) [n]:
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /g01/grid/app/11.2.0/grid
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)yozhan1,yozhan2
Oracle Home selected for de-install is: /g01/grid/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /g01/grid/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to:'/tmp/deinstall2014-08-30_11-39-59-AM/logs/deinstall_deconfig2014-08-30_11-40-47-AM.out'Any error messages from this session will be written to:'/tmp/deinstall2014-08-30_11-39-59-AM/logs/deinstall_deconfig2014-08-30_11-40-47-AM.err'######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2014-08-30_11-39-59-AM/logs/asmcadc_clean6022882668335404302.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2014-08-30_11-39-59-AM/logs/netdc_clean8953324129251920731.log
De-configuring RAC listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Unregistering listener: LISTENER
Listener unregistered successfully.
Listener de-configured successfully.
De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.
De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.
De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.
De-configuring backup files on all nodes...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
#下面蓝色字体的内容是需要在所有节点执行的
---------------------------------------->
Run the following command as the root user or the administrator on node "yozhan2".
/tmp/deinstall2014-08-30_11-39-59-AM/perl/bin/perl -I/tmp/deinstall2014-08-30_11-39-59-AM/perl/lib -I/tmp/deinstall2014-08-30_11-39-59-AM/crs/install /tmp/deinstall2014-08-30_11-39-59-AM/crs/install/rootcrs.pl -force -delete -paramfile /tmp/deinstall2014-08-30_11-39-59-AM/response/deinstall_Ora11g_gridinfrahome1.rsp
Run the following command as the root user or the administrator on node "yozhan1".
/tmp/deinstall2014-08-30_11-39-59-AM/perl/bin/perl -I/tmp/deinstall2014-08-30_11-39-59-AM/perl/lib -I/tmp/deinstall2014-08-30_11-39-59-AM/crs/install /tmp/deinstall2014-08-30_11-39-59-AM/crs/install/rootcrs.pl -force -delete -paramfile /tmp/deinstall2014-08-30_11-39-59-AM/response/deinstall_Ora11g_gridinfrahome1.rsp -lastnode
Oracle Universal Installer clean START
Detach Oracle home'/g01/grid/app/11.2.0/grid'from the central inventory on the local node : Done
Delete directory'/g01/grid/app/11.2.0/grid'on the local node : Done
Delete directory'/g01/grid/app/oraInventory'on the local node : Done
Delete directory'/g01/grid/app/grid'on the local node : Done
Detach Oracle home'/g01/grid/app/11.2.0/grid'from the central inventory on the remote nodes'yozhan2': Done
Delete directory'/g01/grid/app/11.2.0/grid'on the remote nodes'yozhan2': Done
Delete directory'/g01/grid/app/oraInventory'on the remote nodes'yozhan2': Done
Delete directory'/g01/grid/app/grid'on the remote nodes'yozhan2': 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'yozhan1'Clean install operation removing temporary directory'/tmp/install'on node'yozhan2'Oracle install clean END
Moved default properties file /tmp/deinstall2014-08-30_11-39-59-AM/response/deinstall_Ora11g_gridinfrahome1.rsp as /tmp/deinstall2014-08-30_11-39-59-AM/response/deinstall_Ora11g_gridinfrahome1.rsp4
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER
Oracle Clusterware is stopped and successfully de-configured on node "yozhan2"
Oracle Clusterware is stopped and successfully de-configured on node "yozhan1"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home'/g01/grid/app/11.2.0/grid'from the central inventory on the local node.
Successfully deleted directory'/g01/grid/app/11.2.0/grid'on the local node.
Successfully deleted directory'/g01/grid/app/oraInventory'on the local node.
Successfully deleted directory'/g01/grid/app/grid'on the local node.
Successfully detached Oracle home'/g01/grid/app/11.2.0/grid'from the central inventory on the remote nodes'yozhan2'.
Successfully deleted directory'/g01/grid/app/11.2.0/grid'on the remote nodes'yozhan2'.
Successfully deleted directory'/g01/grid/app/oraInventory'on the remote nodes'yozhan2'.
Successfully deleted directory'/g01/grid/app/grid'on the remote nodes'yozhan2'.
Oracle Universal Installer cleanup was successful.
#注意,此处还需要执行下面的步骤才可以卸载干净
Run'rm -rf /etc/oraInst.loc' as root on node(s) 'yozhan1,yozhan2'at the end of the session.
Oracle install successfully cleaned up the temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############