博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle11g R2 RAC卸载grid
阅读量:6333 次
发布时间:2019-06-22

本文共 11289 字,大约阅读时间需要 37 分钟。

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.
 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

转载地址:http://oqsoa.baihongyu.com/

你可能感兴趣的文章
数据库内存结构
查看>>
利用Shell开发跳板机功能脚本案例
查看>>
51CTO的技术门诊谈OSSIM
查看>>
六年心路成长 —— 做自己
查看>>
ios电话拨打进行监听电话状态
查看>>
京东基于Spark的风控系统架构实践和技术细节
查看>>
什么时候使用CountDownLatch
查看>>
C#之MemberwiseClone与Clone
查看>>
Android性能优化之利用Rxlifecycle解决RxJava内存泄漏
查看>>
转: 如何为你的开源项目选择一个合适的开源协议?
查看>>
关系型数据库和NOSQL数据库对比
查看>>
Atitit 记录方法调用参数上下文arguments
查看>>
webstorm常用功能FTP,及常用快捷键
查看>>
eclipse html 打开方式
查看>>
[求助] win7 x64 封装 出现 Administrator.xxxxx 的问题
查看>>
人类投资经理再也无法击败电脑的时代终将到来了...
查看>>
一个最小手势库的实现
查看>>
HoloLens开发手记 - Vuforia开发概述 Vuforia development overview
查看>>
Android支付之支付宝封装类
查看>>
<亲测>CentOS中yum安装ffmpeg
查看>>