CRS注销LSNR信息

 在集群环境中,Oracle通过CRS管理集群中的资源状况,如database、ASM、instance、listener、VIP等CRS资源也就是nodeapps,而这些资源信息都注册在CRS的共享区域OCR里。 


我在实验的过程中由于误操作,多建立了一个监听LISTENER_RAC, 在用netca建立了这个监听以后,CRS就在节点信息里加入了这个listner的信息, 我用netca删除了监听,由于某些问题,这里不做就不描述这个问题了,导致监听已经在listener.ora上删除,但是crs的信息里还有。 

[oracle@inth-rac01 ~]$ /opt/crs/product/10.2.0.1/crs_1/bin/crs_stat -t Name Type Target State Host 
------------------------------------------------------------ 
ora....01.lsnr application OFFLINE OFFLINE 
ora....c01.gsd application OFFLINE OFFLINE 
ora....c01.ons application OFFLINE OFFLINE 
ora....c01.vip application ONLINE ONLINE inth-rac01 
ora....02.lsnr application OFFLINE OFFLINE 
ora....c02.gsd application OFFLINE OFFLINE 
ora....c02.ons application OFFLINE OFFLINE 
ora....c02.vip application ONLINE ONLINE inth-rac02 


怎样手工删除listnere我们这里需要讨论的。 

在crs里提供一个crs_unregister的命令,通过这个命令,我们可以手工删除监听已经其他的nodeapp的注册信息。 

用crs_stat先查出listener应用的名字 
[oracle@inth-rac01 ~]$ /opt/crs/product/10.2.0.1/crs_1/bin/crs_stat 
NAME=ora.inth-rac01.LISTENER_RAC_INTH-RAC01.lsnr 
TYPE=application 
TARGET=OFFLINE 
STATE=OFFLINE 

NAME=ora.inth-rac02.LISTENER_RAC_INTH-RAC02.lsnr 
TYPE=application 
TARGET=OFFLINE 
STATE=OFFLINE 

然后用crs_unregister注销掉 
[oracle@inth-rac01 ~]$ /opt/crs/product/10.2.0.1/crs_1/bin/crs_unregister ora.inth-rac01.LISTENER_INTH-RAC01.lsnr 
[oracle@inth-rac01 ~]$ /opt/crs/product/10.2.0.1/crs_1/bin/crs_unregister ora.inth-rac02.LISTENER_INTH-RAC02.lsnr 

再来查看,已经没有listener的信息了。 
[oracle@inth-rac01 ~]$ /opt/crs/product/10.2.0.1/crs_1/bin/crs_stat -t 
Name Type Target State Host 
------------------------------------------------------------ 
ora....c01.gsd application OFFLINE OFFLINE 
ora....c01.ons application OFFLINE OFFLINE 
ora....c01.vip application ONLINE ONLINE inth-rac01 
ora....c02.gsd application OFFLINE OFFLINE 
ora....c02.ons application OFFLINE OFFLINE 
ora....c02.vip application ONLINE ONLINE inth-rac02
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

inthirties

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值