Wednesday, October 12, 2016

Oracle 11g RAC oc4j/gsd Offline

Oracle 11g RAC oc4j/gsd Offline
Oracle 11g RAC, oc4j and gsd services in the offline state, which is Oracle 11g RAC default situation.
Even so, it does not affect the use of the database, because the oc4j is a resource for WLM, WLM 11.2.0.2 available.
GSD is used to support the the dbca, srvctl, oem interaction tool. This article describes the two services to switch to the online.

The GSD has been replaced by the CRS in 11g, and in 11g, by default, the Global Services daemon (GSD) is disabled.

See MOSC note 429966.1 titled "GSD Is Used Only if 9i RAC Database is Present"

 1?
 [root@linux2 ~]# cat /etc/issue
 Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
 Kernel \r on an \m

 [root@linux2 bin]# ./crsctl query crs activeversion
 Oracle Clusterware active version on the cluster is [11.2.0.1.0]

2?oc4jgsdoffline
 [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?oc4j
 #srvctl oc4j
 [grid@linux2 ~]$ srvctl start oc4j
 OC4J could not be started
 PRCR-1079 : Failed to start resource ora.oc4j
 CRS-2501: Resource 'ora.oc4j' is disabled    #disable

 #crsctl?
 [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?gsd
 #linux1?GSDdisable  
 [grid@linux2 ~]$ srvctl status nodeapps -n linux1
 -n 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 not 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?GSDdisable
 [grid@linux2 ~]$ srvctl status nodeapps -n linux2
 -n 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 not 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
 [grid@linux2 ~]$ 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

 #GSDenable
 [grid@linux2 ~]$ 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 is not running on node: linux1
 GSD is not 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

 [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

 #GSD              
 [grid@linux2 ~]$ 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
 [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
 [grid@linux2 ~]$ 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  

No comments:

Post a Comment