Oracle 11g RAC Oc4j/gsd Offline

Source: Internet
Author: User
Tags deprecated

In Oracle 11g RAC, the Discovery oc4j and the GSD service are in the offline state, which is the Oracle 11g RAC default scenario. Even so, it does not affect the use of the database because OC4J is a resource for WLM and WLM is available in 11.2.0.2. GSD is an interactive tool for supporting dbca,srvctl,oem and so on. This article describes switching these two services to online.

[Python]View PlainCopyprint?
  1. 1. Environment
  2. [[Email protected] ~] # cat/etc/issue
  3. Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
  4. Kernel \ r on an \m
  5. [[email protected] bin] #./crsctl Query CRS Activeversion
  6. Oracle Clusterware Active version on the cluster is [11.2. 0.1.0]
  7. 2, oc4j and all the GSD in offline
  8. [Email protected] ~]$ Crs_stat-t | grep OFFLINE
  9. ORA.GSD Ora.gsd.type OFFLINE OFFLINE
  10. ORA.LINUX1.GSD Application OFFLINE OFFLINE
  11. ORA.LINUX2.GSD Application OFFLINE OFFLINE
  12. ora.oc4j Ora.oc4j.type OFFLINE OFFLINE
  13. 3. Start oc4j Service
  14. #使用srvctl to start the oc4j service
  15. [Email protected] ~]$ srvctl start oc4j
  16. Oc4j could not being started
  17. prcr-1079:failed to start resource ora.oc4j
  18. crs-2501:resource ' ora.oc4j ' is disabled #提示该服务处于disable状态
  19. #尝试使用crsctl来启动, still failed.
  20. [Email protected] ~]$ crsctl start res ora.oc4j-init
  21. crs-2613:could not find resource ' ora.oc4j '.
  22. crs-4000:command Start failed, or completed with errors.
  23. #下面先将状态置为enable状态
  24. [Email protected] ~]$ Srvctl enable oc4j
  25. #再次启动成功
  26. [Email protected] ~]$ srvctl start oc4j
  27. [Email protected] ~]$ Crs_stat-t | grep oc4j
  28. ora.oc4j ora.oc4j.type Online Online linux2
  29. 4. Start the GSD service
  30. #查看节点linux1上所有的资源状态, you can see the output indicating that GSD has been disable.
  31. [Email protected] ~]$ srvctl status Nodeapps-n linux1
  32. -N <node_name> option has been deprecated.
  33. VIP LINUX1-VIP is enabled
  34. VIP LINUX1-VIP is running on node:linux1
  35. Network is enabled
  36. Network is running on node:linux1
  37. GSD is disabled
  38. GSD isn't running on node:linux1
  39. ONS is enabled
  40. ONS Daemon is running on node:linux1
  41. EONS is enabled
  42. EONS Daemon is running on node:linux1
  43. #下面查看节点linux2上所有的资源状态, you can also see the output information indicating that GSD has been disable.
  44. [Email protected] ~]$ srvctl status Nodeapps-n linux2
  45. -N <node_name> option has been deprecated.
  46. VIP LINUX2-VIP is enabled
  47. VIP LINUX2-VIP is running on node:linux2
  48. Network is enabled
  49. Network is running on node:linux2
  50. GSD is disabled
  51. GSD isn't running on node:linux2
  52. ONS is enabled
  53. ONS Daemon is running on node:linux2
  54. EONS is enabled
  55. EONS Daemon is running on node:linux2
  56. #将所有的服务置于enable状态
  57. [Email protected] ~]$ Srvctl enable Nodeapps
  58. prko-2415:VIP is already enabled on node (s): Linux1,linux2
  59. prko-2416:network resource is already enabled.
  60. prko-2417:ons is already enabled on node (s): Linux1,linux2
  61. prko-2418:eons is already enabled on node (s): Linux1,linux2
  62. #再次查看GSD的状态已经变成enable了
  63. [Email protected] ~]$ srvctl status Nodeapps
  64. VIP LINUX1-VIP is enabled
  65. VIP LINUX1-VIP is running on node:linux1
  66. VIP LINUX2-VIP is enabled
  67. VIP LINUX2-VIP is running on node:linux2
  68. Network is enabled
  69. Network is running on node:linux1
  70. Network is running on node:linux2
  71. GSD is enabled
  72. GSD isn't running on node:linux1
  73. GSD isn't running on node:linux2
  74. ONS is enabled
  75. ONS Daemon is running on node:linux1
  76. ONS Daemon is running on node:linux2
  77. EONS is enabled
  78. EONS Daemon is running on node:linux1
  79. EONS Daemon is running on node:linux2
  80. [Email protected] ~]$ Crs_stat-t | grep OFFLINE
  81. ORA.GSD Ora.gsd.type OFFLINE OFFLINE
  82. ORA.LINUX1.GSD Application OFFLINE OFFLINE
  83. ORA.LINUX2.GSD Application OFFLINE OFFLINE
  84. #启动GSD服务
  85. [Email protected] ~]$ srvctl start Nodeapps
  86. prko-2421:network Resource is already started on node (s): Linux1,linux2
  87. prko-2420:vip is already started on node (s): Linux1,linux2
  88. prko-2420:vip is already started on node (s): Linux1,linux2
  89. prko-2422:ons is already started on node (s): Linux1,linux2
  90. prko-2423:eons is already started on node (s): Linux1,linux2
  91. #验证GSD服务
  92. [Email protected] ~]$ Crs_stat-t | grep OFFLINE
  93. [Email protected] ~]$ Crs_stat-t | grep GSD
  94. Ora.gsd ora.gsd.type Online Online linux1
  95. ORA.LINUX1.GSD Application Online Online linux1
  96. ORA.LINUX2.GSD Application Online Online linux2
  97. #Author: Robinson
  98. #Blog: http://blog.csdn.net/robinson_0612
  99. 5. About GSD
  100. The Global Services Daemon (GSD) runs on each node with one GSD process per node.
  101. The GSD coordinates with the cluster Manager-to-receive requests from clients such as the DBCA, EM,
  102. And the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown.
  103. The GSD is not a Oracle instance background process and is therefore no started with the Oracle Inst   Ance.
  104. GSD interacts with RAC's management tools DBCA Srvctl OEMs to perform administrative tasks such as startup and shutdown of instances.
  105. To ensure that these management tools are functioning properly, you must first start the GSD on all nodes.
  106. A GSD process supports multiple RAC.GSD processes on one node, located in the $oracle_home/bin directory.
  107. Its log file is $oracle_home/srvm/log/gsdaemon.log.
  108. For example:
  109. Assuming an OEM tool is used to launch an instance, the OEM passes the task to the appropriate smart engine, which generates a script file that contains the Srvctl command.
  110. The GSD process reads the script file and executes the script, and the GSD returns the execution result to the smart engine, which is near and the smart engine is returned to the OEM.
  111. For example, assuming that all instances are closed using the Srvctl tool, the GSD process accepts requests from the Srvctl tool and
  112. Executes the request on the local node and returns the execution result to the SRVCTL session.
  113. Ext.: http://blog.csdn.net/leshami/article/details/8471546

Oracle 11g RAC Oc4j/gsd Offline

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.