oracle 11gR2 安裝grid完成後預設的資源組狀態

paulyibinyi發表於2010-02-28

    在11gR2版本中,rac安裝完成後,資源組的狀態不是全部online的,有部分是offline的

$ ./crsctl status resource -t
[grid@p520:/grid/app/11.2.0/grid/bin]$./crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.LISTENER.lsnr
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.asm
               ONLINE  ONLINE       p520                     Started            
               ONLINE  ONLINE       p650                     Started            
ora.eons
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.gsd
               OFFLINE OFFLINE      p520                                        
               OFFLINE OFFLINE      p650
                                        
ora.net1.network
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.ons
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       p520                                        
ora.oc4j
      1        OFFLINE OFFLINE
                       
ora.p520.vip
      1        ONLINE  ONLINE       p520                                        
ora.p650.vip
      1        ONLINE  ONLINE       p650                                        
ora.scan1.vip
      1        ONLINE  ONLINE       p520        

從上面可以看出,gsd和oc4j服務都是offline的

我們可以用srvctl status命令看出具體狀態都是disable的

srvctl status oc4j

oc4j is disabled
oc4j is not running

srvctl status nodeapps

[grid@p520:/grid/app/grid]$srvctl status nodeapps
VIP p520-vip is enabled
VIP p520-vip is running on node: p520
VIP p650-vip is enabled
VIP p650-vip is running on node: p650
Network is enabled
Network is running on node: p520
Network is running on node: p650
GSD is disabled
GSD is not running on node: p520
GSD is not running on node: p650

ONS is enabled
ONS daemon is running on node: p520
ONS daemon is running on node: p650
eONS is enabled
eONS daemon is running on node: p520
eONS daemon is running on node: p650

命令看出,oc4j和gsd

如果我們想改為enable,自動啟動,則用srvctl enable 命令即可

srvctl enable oc4j

srvctl enable nodeapps

啟動oc4j和gsd服務

srvctl start oc4j

srvctl start nodeapps -n p520

srvctl start nodeapps -n p650

然後檢視狀態,全是online

[grid@p520:/grid/app/grid]$crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.DGDATA1.dg
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.DGRECOVER.dg
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.DGSYSTEM.dg
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.LISTENER.lsnr
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.asm
               ONLINE  ONLINE       p520                     Started            
               ONLINE  ONLINE       p650                     Started            
ora.eons
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.gsd
              ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650
                                                                             
ora.net1.network
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
ora.ons
               ONLINE  ONLINE       p520                                        
               ONLINE  ONLINE       p650                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       p650                                        
ora.oc4j
      1        ONLINE  ONLINE       p650
                                         
     
ora.p520.vip
      1        ONLINE  ONLINE       p520                                        
ora.p650.vip
      1        ONLINE  ONLINE       p650                                        
ora.scan1.vip
      1        ONLINE  ONLINE       p650                           

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

相關文章