Oracle数据库crs_unregister命令注销crs中offline的资源
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