oracle11g R2 RAC卸载grid
oracle版本:oracle11.2.0.3
进入grid用户,cd $ORACLE_HOM/deinstallE目录
[grid@xyy1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2013-09-06_10-23-18AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/11.2.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/11.2.0/grid
The following nodes are part of this cluster: xyy1,xyy2
Checking for sufficient temp space availability on node(s) : 'xyy1,xyy2'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2013-09-06_10-23-18AM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "xyy1"[xyy1-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "xyy1"
Enter the IP netmask of Virtual IP "162.12.1.135" on node "xyy1"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "162.12.1.135" is active
>
Enter an address or the name of the virtual IP used on node "xyy2"[xyy2-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "xyy2"
Enter the IP netmask of Virtual IP "162.12.1.137" on node "xyy2"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "162.12.1.137" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2013-09-06_10-23-18AM/logs/netdc_check2013-09-06_10-28-12-AM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER,LISTENER_SCAN1]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2013-09-06_10-23-18AM/logs/asmcadc_check2013-09-06_10-28-14-AM.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]:y (输入)
ASM was not detected in the Oracle Home
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:xyy1,xyy2
Oracle Home selected for deinstall is: /u01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN1
ASM was not detected in the Oracle Home
Do you want to continue (y - yes, n - no)? [n]: y
Exited from program.
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[grid@xyy1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2013-09-06_10-28-22AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/11.2.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/11.2.0/grid
The following nodes are part of this cluster: xyy1,xyy2
Checking for sufficient temp space availability on node(s) : 'xyy1,xyy2'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2013-09-06_10-28-22AM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "xyy1"[xyy1-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "xyy1"
Enter the IP netmask of Virtual IP "162.12.1.135" on node "xyy1"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "162.12.1.135" is active
>
Enter an address or the name of the virtual IP used on node "xyy2"[xyy2-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "xyy2"
Enter the IP netmask of Virtual IP "162.12.1.137" on node "xyy2"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "162.12.1.137" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2013-09-06_10-28-22AM/logs/netdc_check2013-09-06_10-37-43-AM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER,LISTENER_SCAN1]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2013-09-06_10-28-22AM/logs/asmcadc_check2013-09-06_10-37-45-AM.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]:y
Specify the ASM Diagnostic Destination [ ]:
Specify the diskstring [/dev/*]:
Specify the diskgroups that are managed by this ASM instance []:
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:xyy1,xyy2
Oracle Home selected for deinstall is: /u01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN1
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/deinstall2013-09-06_10-28-22AM/logs/deinstall_deconfig2013-09-06_10-28-31-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2013-09-06_10-28-22AM/logs/deinstall_deconfig2013-09-06_10-28-31-AM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2013-09-06_10-28-22AM/logs/asmcadc_clean2013-09-06_10-37-59-AM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2013-09-06_10-28-22AM/logs/netdc_clean2013-09-06_10-38-00-AM.log
De-configuring RAC listener(s): LISTENER,LISTENER_SCAN1
De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Listener de-configured successfully.
De-configuring listener: LISTENER_SCAN1
Stopping listener: LISTENER_SCAN1
Warning: Failed to stop listener. Listener may not be running.
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
---------------------------------------->
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.
Run the following command as the root user or the administratoron node "xyy2".
/tmp/deinstall2013-09-06_10-28-22AM/perl/bin/perl -I/tmp/deinstall2013-09-06_10-28-22AM/perl/lib -I/tmp/deinstall2013-09-06_10-28-22AM/crs/install /tmp/deinstall2013-09-06_10-28-22AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2013-09-06_10-28-22AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Run the following command as the root user or the administratoron node "xyy1".
/tmp/deinstall2013-09-06_10-28-22AM/perl/bin/perl -I/tmp/deinstall2013-09-06_10-28-22AM/perl/lib -I/tmp/deinstall2013-09-06_10-28-22AM/crs/install /tmp/deinstall2013-09-06_10-28-22AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2013-09-06_10-28-22AM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Press Enter after you finish running the above commands (注意:每个节点执行完上述脚本并且successful 就可以回车了)
<----------------------------------------
执行一个节点脚本为例子:
进入节点执行上述命令(节点2 为例子)
cd /tmp
vi xyy.sh
插入如下内容:
/tmp/deinstall2013-09-06_10-28-22AM/perl/bin/perl -I/tmp/deinstall2013-09-06_10-28-22AM/perl/lib -I/tmp/deinstall2013-09-06_10-28-22AM/crs/install /tmp/deinstall2013-09-06_10-28-22AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2013-09-06_10-28-22AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
chmod u+x xyy.sh
[root@xyy2 tmp]# ./xyy.sh
Using configuration parameter file: /tmp/deinstall2013-09-06_10-28-22AM/response/deinstall_Ora11g_gridinfrahome1.rsp
CRS-5702: Resource 'ora.cssd' is already running on 'xyy2'
CRS-4000: Command Start failed, or completed with errors.
CSS startup failed with return code 1
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
CRS-2673: Attempting to stop 'ora.ctssd' on 'xyy2'
CRS-2673: Attempting to stop 'ora.evmd' on 'xyy2'
CRS-2673: Attempting to stop 'ora.asm' on 'xyy2'
CRS-2677: Stop of 'ora.evmd' on 'xyy2' succeeded
CRS-2677: Stop of 'ora.asm' on 'xyy2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'xyy2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'xyy2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'xyy2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'xyy2'
CRS-2677: Stop of 'ora.cssd' on 'xyy2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'xyy2'
CRS-2676: Start of 'ora.cssdmonitor' on 'xyy2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'xyy2'
CRS-2672: Attempting to start 'ora.diskmon' on 'xyy2'
CRS-2676: Start of 'ora.diskmon' on 'xyy2' succeeded
CRS-2676: Start of 'ora.cssd' on 'xyy2' succeeded
This ASM diskgroup does not contain voting disks to be deleted
ASM de-configuration trace file location: /tmp/deinstall2013-09-06_10-28-22AM/logs/asmcadc_clean2013-09-06_10-51-47-AM.log
ASM Clean Configuration START
ASM Clean Configuration END