解決crs_stat狀態為UNKNOWN問題

不一樣的天空w發表於2017-10-23
RAC啟動後,crs_stat -t顯示有兩個resource的狀態為unknown,如下:

oracle@RAC1 [/home/oracle] crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....SM1.asm application    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    ONLINE    UNKNOWN   rac1        
ora.rac1.ons   application    ONLINE    UNKNOWN   rac1        
ora.rac1.vip   application    ONLINE    ONLINE    rac1        
ora....SM2.asm application    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    ONLINE    ONLINE    rac2        
ora.rac2.ons   application    ONLINE    ONLINE    rac2        
ora.rac2.vip   application    ONLINE    ONLINE    rac2        
ora.xjny.db    application    ONLINE    ONLINE    rac2        
ora....y1.inst application    ONLINE    ONLINE    rac1        
ora....y2.inst application    ONLINE    ONLINE    rac2    

透過crs_stop,使該resource變為offline狀態,然後用crs_start重啟該resource,如下:
oracle@RAC1 [/home/oracle] crs_stop ora.rac1.gsd
Attempting to stop `ora.rac1.gsd` on member `rac1`
Stop of `ora.rac1.gsd` on member `rac1` succeeded.

oracle@RAC1 [/home/oracle] crs_stop ora.rac1.ons
Attempting to stop `ora.rac1.ons` on member `rac1`
Stop of `ora.rac1.ons` on member `rac1` succeeded.

命令完成後,相關resource變為OFFLINE狀態:

oracle@RAC1 [/home/oracle] crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....SM1.asm application    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    OFFLINE   OFFLINE               
ora.rac1.ons   application    OFFLINE   OFFLINE               
ora.rac1.vip   application    ONLINE    ONLINE    rac1        
ora....SM2.asm application    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    ONLINE    ONLINE    rac2        
ora.rac2.ons   application    ONLINE    ONLINE    rac2        
ora.rac2.vip   application    ONLINE    ONLINE    rac2        
ora.xjny.db    application    ONLINE    ONLINE    rac2        
ora....y1.inst application    ONLINE    ONLINE    rac1        
ora....y2.inst application    ONLINE    ONLINE    rac2   

使用crs_start命令啟動該resource:

oracle@RAC1 [/home/oracle] crs_start ora.rac1.gsd
Attempting to start `ora.rac1.gsd` on member `rac1`
Start of `ora.rac1.gsd` on member `rac1` succeeded.
oracle@RAC1 [/home/oracle]  crs_start ora.rac1.ons
Attempting to start `ora.rac1.ons` on member `rac1`
Start of `ora.rac1.ons` on member `rac1` succeeded.
oracle@RAC1 [/home/oracle] 
oracle@RAC1 [/home/oracle] crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
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....SM2.asm application    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    ONLINE    ONLINE    rac2        
ora.rac2.ons   application    ONLINE    ONLINE    rac2        
ora.rac2.vip   application    ONLINE    ONLINE    rac2        
ora.xjny.db    application    ONLINE    ONLINE    rac2        
ora....y1.inst application    ONLINE    ONLINE    rac1        
ora....y2.inst application    ONLINE    ONLINE    rac2     

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31397003/viewspace-2146263/,如需轉載,請註明出處,否則將追究法律責任。

相關文章