Oracle数据库crs_unregister命令注销crs中offline的资源

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:560

Oracle数据库crs_unregister命令注销crs中offline的资源

客户的一个rac数据库在安装过程中,由于误操作,每个节点安装了两个listener的资源,其中一个offline
这样我们就可以用crs_unregister来注销offline中的资源

[oracle@testdb1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE testdb1
ora....B2.inst application ONLINE ONLINE testdb2
ora.GDtestBB.db application ONLINE ONLINE testdb2
ora....B1.lsnr application ONLINE ONLINE testdb1
ora....B1.lsnr application ONLINE OFFLINE
ora.testdb1.gsd application ONLINE ONLINE testdb1
ora.testdb1.ons application ONLINE ONLINE testdb1
ora.testdb1.vip application ONLINE ONLINE testdb1
ora....B2.lsnr application ONLINE ONLINE testdb2
ora....B2.lsnr application ONLINE OFFLINE
ora.testdb2.gsd application ONLINE ONLINE testdb2
ora.testdb2.ons application ONLINE ONLINE testdb2
ora.testdb2.vip application ONLINE ONLINE testdb2

crs_unregister ora.testdb1.LISTENER_testDB_testDB1.lsnr
crs_unregister ora.testdb2.LISTENER_testDB_testDB2.lsnr

[oracle@testdb1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE testdb1
ora....B2.inst application ONLINE ONLINE testdb2
ora.GDtestBB.db application ONLINE ONLINE testdb2
ora....B1.lsnr application ONLINE ONLINE testdb1
ora.testdb1.gsd application ONLINE ONLINE testdb1
ora.testdb1.ons application ONLINE ONLINE testdb1
ora.testdb1.vip application ONLINE ONLINE testdb1
ora....B2.lsnr application ONLINE ONLINE testdb2
ora.testdb2.gsd application ONLINE ONLINE testdb2
ora.testdb2.ons application ONLINE ONLINE testdb2
ora.testdb2.vip application ONLINE ONLINE testdb2

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】