Oracle 11g RAC oc4j/gsd Offline

來源:互聯網
上載者:User

標籤:

  Oracle 11g RAC中,發現oc4j以及gsd服務都處於offline狀態,這是Oracle 11g RAC預設情形。即便如此,並不影響資料庫的使用,因為 oc4j 是用於WLM 的一個資源, WLM在 11.2.0.2 才可用。GSD則是用於支援dbca,srvctl,oem等的互動工具。本文描述將這兩個服務切換到online。

[python] view plain copy  print?
  1. 1、環境  
  2.  [[email protected] ~]# cat /etc/issue  
  3.  Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)  
  4.  Kernel \r on an \m  
  5.    
  6.  [[email protected] bin]# ./crsctl query crs activeversion  
  7.  Oracle Clusterware active version on the cluster is [11.2.0.1.0]  
  8.   
  9. 2、oc4j與所有的gsd處於offline   
  10.  [[email protected] ~]$ crs_stat -t | grep OFFLINE  
  11.  ora.gsd        ora.gsd.type   OFFLINE   OFFLINE                 
  12.  ora.linux1.gsd application    OFFLINE   OFFLINE                 
  13.  ora.linux2.gsd application    OFFLINE   OFFLINE                 
  14.  ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE    
  15.   
  16. 3、啟動oc4j服務  
  17.  #使用srvctl 來啟動oc4j服務  
  18.  [[email protected] ~]$ srvctl start oc4j  
  19.  OC4J could not be started  
  20.  PRCR-1079 : Failed to start resource ora.oc4j  
  21.  CRS-2501: Resource ‘ora.oc4j‘ is disabled    #提示該服務處於disable狀態  
  22.    
  23.  #嘗試使用crsctl來啟動,依然失敗  
  24.  [[email protected] ~]$ crsctl start res ora.oc4j -init  
  25.  CRS-2613: Could not find resource ‘ora.oc4j‘.  
  26.  CRS-4000: Command Start failed, or completed with errors.  
  27.   
  28.  #下面先將狀態置為enable狀態   
  29.  [[email protected] ~]$ srvctl enable oc4j  
  30.  #再次啟動成功  
  31.  [[email protected] ~]$ srvctl start oc4j  
  32.  [[email protected] ~]$ crs_stat -t | grep oc4j  
  33.  ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    linux2        
  34.   
  35. 4、啟動gsd服務  
  36.  #查看節點linux1上所有的資源狀態,可以看到輸出的資訊表明GSD也被disable了      
  37.  [[email protected] ~]$ srvctl status nodeapps -n linux1  
  38.  -n <node_name> option has been deprecated.  
  39.  VIP linux1-vip is enabled  
  40.  VIP linux1-vip is running on node: linux1  
  41.  Network is enabled  
  42.  Network is running on node: linux1  
  43.  GSD is disabled  
  44.  GSD is not running on node: linux1  
  45.  ONS is enabled  
  46.  ONS daemon is running on node: linux1  
  47.  eONS is enabled  
  48.  eONS daemon is running on node: linux1  
  49.    
  50.  #下面查看節點linux2上所有的資源狀態,也可以看到輸出的資訊表明GSD也被disable了   
  51.  [[email protected] ~]$ srvctl status nodeapps -n linux2  
  52.  -n <node_name> option has been deprecated.  
  53.  VIP linux2-vip is enabled  
  54.  VIP linux2-vip is running on node: linux2  
  55.  Network is enabled  
  56.  Network is running on node: linux2  
  57.  GSD is disabled  
  58.  GSD is not running on node: linux2  
  59.  ONS is enabled  
  60.  ONS daemon is running on node: linux2  
  61.  eONS is enabled  
  62.  eONS daemon is running on node: linux2  
  63.    
  64.  #將所有的服務置於enable狀態  
  65.  [[email protected] ~]$ srvctl enable nodeapps  
  66.  PRKO-2415 : VIP is already enabled on node(s): linux1,linux2  
  67.  PRKO-2416 : Network resource is already enabled.  
  68.  PRKO-2417 : ONS is already enabled on node(s): linux1,linux2  
  69.  PRKO-2418 : eONS is already enabled on node(s): linux1,linux2  
  70.    
  71.  #再次查看GSD的狀態已經變成enable了  
  72.  [[email protected] ~]$ srvctl status nodeapps  
  73.  VIP linux1-vip is enabled  
  74.  VIP linux1-vip is running on node: linux1  
  75.  VIP linux2-vip is enabled  
  76.  VIP linux2-vip is running on node: linux2  
  77.  Network is enabled  
  78.  Network is running on node: linux1  
  79.  Network is running on node: linux2  
  80.  GSD is enabled  
  81.  GSD is not running on node: linux1  
  82.  GSD is not running on node: linux2  
  83.  ONS is enabled  
  84.  ONS daemon is running on node: linux1  
  85.  ONS daemon is running on node: linux2  
  86.  eONS is enabled  
  87.  eONS daemon is running on node: linux1  
  88.  eONS daemon is running on node: linux2  
  89.    
  90.  [[email protected] ~]$ crs_stat -t | grep OFFLINE  
  91.  ora.gsd        ora.gsd.type   OFFLINE   OFFLINE                 
  92.  ora.linux1.gsd application    OFFLINE   OFFLINE                 
  93.  ora.linux2.gsd application    OFFLINE   OFFLINE  
  94.    
  95.  #啟動GSD服務                 
  96.  [[email protected] ~]$ srvctl start nodeapps   
  97.  PRKO-2421 : Network resource is already started on node(s): linux1,linux2  
  98.  PRKO-2420 : VIP is already started on node(s): linux1,linux2  
  99.  PRKO-2420 : VIP is already started on node(s): linux1,linux2  
  100.  PRKO-2422 : ONS is already started on node(s): linux1,linux2  
  101.  PRKO-2423 : eONS is already started on node(s): linux1,linux2  
  102.    
  103.  #驗證GSD服務  
  104.  [[email protected] ~]$ crs_stat -t | grep OFFLINE  
  105.  [[email protected] ~]$ crs_stat -t | grep gsd  
  106.  ora.gsd        ora.gsd.type   ONLINE    ONLINE    linux1        
  107.  ora.linux1.gsd application    ONLINE    ONLINE    linux1        
  108.  ora.linux2.gsd application    ONLINE    ONLINE    linux2    
  109.    
  110.  #Author : Robinson  
  111.  #Blog   : http://blog.csdn.net/robinson_0612      
  112.   
  113. 5、關於GSD  
  114.  The Global Services Daemon (GSD) runs on each node with one GSD process per node.   
  115.  The GSD coordinates with the cluster manager to receive requests from clients such as the DBCA, EM,   
  116.  and the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown.   
  117.  The GSD is not an Oracle instance background process and is therefore not started with the Oracle instance.   
  118.  GSD與rac的管理工具dbca srvctl oem進行互動,用來完成執行個體的啟動關閉等管理工作。   
  119.  為了保證這些管理工具運行正常必須在所有的節點上先啟動 gsd。  
  120.  一個GSD進程支援在一個節點的多個rac.gsd進程,位於$ORACLE_HOME/bin目錄下。  
  121.  其log檔案為$oracle_home /srvm/log/gsdaemon.log。  
  122.    
  123.  例如:   
  124.  假設使用oem工具來啟動一個執行個體,oem把該任務傳遞給相應的智能引擎,該智能引擎產生一個包含SRVCTL命令的指令檔,  
  125.  GSD進程讀取該指令檔並且執行該指令碼,最後GSD把執行結果返回給智能引擎,近而智能引擎返回給OEM。  
  126.    
  127.  又例如假設使用srvctl工具關閉所有的執行個體,GSD進程接受來自SRVCTL工具發出的請求,並   
  128.  在本地節點上執行該請求,然後把執行結果返回給SRVCTL會話。  
  129. 轉:http://blog.csdn.net/leshami/article/details/8471546

Oracle 11g RAC oc4j/gsd Offline

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.