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. Environment
- [[Email protected] ~] # cat/etc/issue
- Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
- Kernel \ r on an \m
- [[email protected] bin] #./crsctl Query CRS Activeversion
- Oracle Clusterware Active version on the cluster is [11.2. 0.1.0]
- 2, oc4j and all the GSD in offline
- [Email protected] ~]$ Crs_stat-t | grep OFFLINE
- ORA.GSD Ora.gsd.type OFFLINE OFFLINE
- ORA.LINUX1.GSD Application OFFLINE OFFLINE
- ORA.LINUX2.GSD Application OFFLINE OFFLINE
- ora.oc4j Ora.oc4j.type OFFLINE OFFLINE
- 3. Start oc4j Service
- #使用srvctl to start the oc4j service
- [Email protected] ~]$ srvctl start oc4j
- Oc4j could not being started
- prcr-1079:failed to start resource ora.oc4j
- crs-2501:resource ' ora.oc4j ' is disabled #提示该服务处于disable状态
- #尝试使用crsctl来启动, still failed.
- [Email protected] ~]$ crsctl start res ora.oc4j-init
- crs-2613:could not find resource ' ora.oc4j '.
- crs-4000:command Start failed, or completed with errors.
- #下面先将状态置为enable状态
- [Email protected] ~]$ Srvctl enable oc4j
- #再次启动成功
- [Email protected] ~]$ srvctl start oc4j
- [Email protected] ~]$ Crs_stat-t | grep oc4j
- ora.oc4j ora.oc4j.type Online Online linux2
- 4. Start the GSD service
- #查看节点linux1上所有的资源状态, you can see the output indicating that GSD has been disable.
- [Email protected] ~]$ srvctl status Nodeapps-n linux1
- -N <node_name> option has been deprecated.
- VIP LINUX1-VIP is enabled
- VIP LINUX1-VIP is running on node:linux1
- Network is enabled
- Network is running on node:linux1
- GSD is disabled
- GSD isn't running on node:linux1
- ONS is enabled
- ONS Daemon is running on node:linux1
- EONS is enabled
- EONS Daemon is running on node:linux1
- #下面查看节点linux2上所有的资源状态, you can also see the output information indicating that GSD has been disable.
- [Email protected] ~]$ srvctl status Nodeapps-n linux2
- -N <node_name> option has been deprecated.
- VIP LINUX2-VIP is enabled
- VIP LINUX2-VIP is running on node:linux2
- Network is enabled
- Network is running on node:linux2
- GSD is disabled
- GSD isn't running on node:linux2
- ONS is enabled
- ONS Daemon is running on node:linux2
- EONS is enabled
- EONS Daemon is running on node:linux2
- #将所有的服务置于enable状态
- [Email protected] ~]$ Srvctl enable Nodeapps
- prko-2415:VIP is already enabled on node (s): Linux1,linux2
- prko-2416:network resource is already enabled.
- prko-2417:ons is already enabled on node (s): Linux1,linux2
- prko-2418:eons is already enabled on node (s): Linux1,linux2
- #再次查看GSD的状态已经变成enable了
- [Email protected] ~]$ srvctl status Nodeapps
- VIP LINUX1-VIP is enabled
- VIP LINUX1-VIP is running on node:linux1
- VIP LINUX2-VIP is enabled
- VIP LINUX2-VIP is running on node:linux2
- Network is enabled
- Network is running on node:linux1
- Network is running on node:linux2
- GSD is enabled
- GSD isn't running on node:linux1
- GSD isn't running on node:linux2
- ONS is enabled
- ONS Daemon is running on node:linux1
- ONS Daemon is running on node:linux2
- EONS is enabled
- EONS Daemon is running on node:linux1
- EONS Daemon is running on node:linux2
- [Email protected] ~]$ Crs_stat-t | grep OFFLINE
- ORA.GSD Ora.gsd.type OFFLINE OFFLINE
- ORA.LINUX1.GSD Application OFFLINE OFFLINE
- ORA.LINUX2.GSD Application OFFLINE OFFLINE
- #启动GSD服务
- [Email protected] ~]$ srvctl start Nodeapps
- prko-2421:network Resource is already started on node (s): Linux1,linux2
- prko-2420:vip is already started on node (s): Linux1,linux2
- prko-2420:vip is already started on node (s): Linux1,linux2
- prko-2422:ons is already started on node (s): Linux1,linux2
- prko-2423:eons is already started on node (s): Linux1,linux2
- #验证GSD服务
- [Email protected] ~]$ Crs_stat-t | grep OFFLINE
- [Email protected] ~]$ Crs_stat-t | grep GSD
- Ora.gsd ora.gsd.type Online Online linux1
- ORA.LINUX1.GSD Application Online Online linux1
- ORA.LINUX2.GSD Application Online Online linux2
- #Author: Robinson
- #Blog: http://blog.csdn.net/robinson_0612
- 5. About GSD
- The Global Services Daemon (GSD) runs on each node with one GSD process per node.
- The GSD coordinates with the cluster Manager-to-receive requests from clients such as the DBCA, EM,
- And the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown.
- The GSD is not a Oracle instance background process and is therefore no started with the Oracle Inst Ance.
- GSD interacts with RAC's management tools DBCA Srvctl OEMs to perform administrative tasks such as startup and shutdown of instances.
- To ensure that these management tools are functioning properly, you must first start the GSD on all nodes.
- A GSD process supports multiple RAC.GSD processes on one node, located in the $oracle_home/bin directory.
- Its log file is $oracle_home/srvm/log/gsdaemon.log.
- For example:
- 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.
- 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.
- For example, assuming that all instances are closed using the Srvctl tool, the GSD process accepts requests from the Srvctl tool and
- Executes the request on the local node and returns the execution result to the SRVCTL session.
- Ext.: http://blog.csdn.net/leshami/article/details/8471546
Oracle 11g RAC Oc4j/gsd Offline