本文介绍删除数据库节点的第六个步骤,删除第二节点上的Oracle集群服务。
在进行此步删除操作之前,请确保以下删除动作已经完成。
《【RAC】删除RAC数据库节点(一)——删除数据库实例》(http://space.itpub.net/519536/viewspace-676893)
《【RAC】删除RAC数据库节点(二)——删除 ASM》(http://space.itpub.net/519536 /viewspace-676910)
《【RAC】删除RAC数据库节点(三)——删除监听》(http://space.itpub.net/519536/viewspace-677005)
《【RAC】删除RAC数据库节点(四)——删除数据库软件及ASM软件》(http://space.itpub.net/?uid-519536-action-viewspace-itemid-677089)
《【RAC】删除RAC数据库节点(五)——删除ONS》(http://space.itpub.net/519536/viewspace-677136)
目标:删除第二节点的集群服务
1.删除之前状态
[root@rac2 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE rac1
ora.RACDB.db application ONLINE ONLINE rac2
ora....DB1.srv application ONLINE ONLINE rac1
ora.....taf.cs application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
2.以root用户登录在第二个节点,执行脚本rootdelete.sh
[root@rac2 ~]# /u01/crs1020/install/rootdelete.sh
CRS-0210: Could not find resource 'ora.rac2.LISTENER_RAC2.lsnr'.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script. for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'
3.在节点以root身份执行rootdeletenode.sh脚本
[root@rac1 ~]# /u01/crs1020/bin/olsnodes -n
rac1 1
rac2 2
[root@rac1 ~]# /u01/crs1020/install/rootdeletenode.sh rac2 2
CRS nodeapps are deleted successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Node deletion operation successful.
'rac2' deleted successfully
rootdeletenode.sh脚本后紧跟的两个参数分别是第二节点主机名和节点编号。
4.确认删除后的状态
[root@rac2 ~]# crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE rac1
ora.RACDB.db application ONLINE ONLINE rac1
ora....DB1.srv application ONLINE ONLINE rac1
ora.....taf.cs application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
OK,此时节点二上的集群服务已经被移除。
Good luck.
secooler
10.10.31
-- The End --
【RAC】删除RAC数据库节点(六)——删除Oracle集群服务
分享好友
分享这个小栈给你的朋友们,一起进步吧。
订阅须知
• 所有用户可根据关注领域订阅专区或所有专区
• 付费订阅:虚拟交易,一经交易不退款;若特殊情况,可3日内客服咨询
• 专区发布评论属默认订阅所评论专区(除付费小栈外)