HP Serviceguard Oracle DataGuard Toolkit User Guide, April 2011

------------------------------------------------------------------------
#
# Define Oracle user
#
sgerac/erac_tk_rac/ORACLE_USER oracle
------------------------------------------------------------------------
#
# Define Oracle start up mode
#
sgerac/erac_tk_rac/START_MODE mount
#
# The package dependency parameters are "dependency_name",
# "dependency_condition" and "dependency_location".
#
dependency_name ocmnp
dependency_condition ocmnp=up
dependency_location SAME_NODE
(Where ocmnp is the SMNP package for Oracle CLusterware)
------------------------------------------------------------------------
(NOTE: The following are the Service commands for the combinational package)
service_name racp_monitor_test
service_cmd "$SGCONF/scripts/sgerac/erac_tk_rac.sh rac_check"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
service_name dataguard_service_test
service_cmd "$SGCONF/scripts/tkit/dataguard/tkit_module.sh dataguard_monitor"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
(NOTE: The following attributes are specific to the ODG toolkit)
------------------------------------------------------------------------
#
# Define ACTIVE_STANDBY
#
tkit/dataguard/dataguard/ACTIVE_STANDBY no
------------------------------------------------------------------------
#
# Define MONITOR_DG_BROKER
#
tkit/dataguard/dataguard/MONITOR_DG_BROKER no
------------------------------------------------------------------------
#
# Define REAL_TIME_APPLY
#
tkit/dataguard/dataguard/REAL_TIME_APPLY no
------------------------------------------------------------------------
#
# Define START_STANDBY_AS_PRIMARY
#
tkit/dataguard/dataguard/START_STANDBY_AS_PRIMARY no
------------------------------------------------------------------------
#
# Define e-mail address for sending alerts
#
#tkit/dataguard/dataguard/ALERT_MAIL_ID
------------------------------------------------------------------------
Adding the package to the cluster
After the setup is complete, add the package to the Serviceguard cluster and start it up.
$ cmapplyconf -P dgpkg.conf
$ cmmodpkg -e -n <node1> —n <node2> dgpkg
$ cmmodpkg -e dgpkg
For more information on adding a package to the cluster, see the Managing HP Serviceguard
document available at:http://www.hp.com/go/hpux-serviceguard-docs
Oracle Data Guard maintenance
There might be situations where the ODG database instances have to be taken down for
maintenance purposes like changing configuration without having the instance migrate to standby
node. Then the following procedure should be followed:
The toolkit maintenance feature is enabled only when the configuration variable
MAINTENANCE_FLAG is set to ā€œyesā€ in the toolkit configuration file. Note that the toolkit
maintenance feature is different from the Serviceguard’s package maintenance feature.
32 Installation and configuration of the toolkit