Oracle 11g RAC, the oc4j and GSD services are found to be in the offline state, which is the Oracle 11g RAC default case. Even so, the use of the database is not affected, because oc4j is a resource for WLM, WLM is available in 11.2.0.2. GSD is an interactive tool for supporting Dbca,srvctl,oem. This article describes switching these two services to online.
1. Environment
[Root@linux2 ~]# Cat/etc/issue
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Kernel \ r \m
[root@linux2 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
[Grid@linux2 ~]$ 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
[grid@linux2 ~]$ srvctl start oc4j
Oc4j could not to be started
Prcr-1079:failed to start resource ora.oc4j
Crs-2501:resource ' ora.oc4j ' is disabled #提示该服务处于disable状态
#尝试使用crsctl来启动, still fail.
[grid@linux2 ~]$ crsctl Start res ora.oc4j-init
Crs-2613:could not find resource ' ora.oc4j '.
Crs-4000:command Start failed, or completed with errors.
#下面先将状态置为enable状态
[grid@linux2 ~]$ Srvctl Enable oc4j
#再次启动成功
[grid@linux2 ~]$ srvctl start oc4j
[Grid@linux2 ~]$ crs_stat-t | grep oc4j
ora.oc4j ora.oc4j.type Online Online linux2
4. Start GSD Service
#查看节点linux1上所有的资源状态, you can see the output of the message that GSD was disable.
[Grid@linux2 ~]$ 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 is 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 that GSD was disable.
[Grid@linux2 ~]$ 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 is 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状态
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/