1. 首页 > ITPUX技术网 > 正文

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

本文由风哥教程整理发布,仅用于学习测试使用,转载注明出处:http://www.fgedu.net.cn/10327.html

联系我们

在线咨询:点击这里给我发消息

微信号:itpux-com

工作日:9:30-18:30,节假日休息