HP Serviceguard Oracle DataGuard Toolkit User Guide, April 2011
a. Create two packages one for the Primary RAC database on the Primary cluster and the
other for the Standby RAC database on the Standby cluster.
b. Create a directory in /etc/cmcluster, for example "dataguard". This directory will
eventually become TKIT_DIR and "cd" to this directory.
c. Run the following commands to create the Package configuration file Templates. Note
that the ODG toolkit has to be used in combination with the SGeRAC toolkit (in case of
RAC Environment).
In the example below, the ODG toolkit module has been used with the SGeRAC toolkit modules
as follows:
#cmmakepkg -m sg/multi_node_all -m sgerac/erac_tk_rac -m
tkit/dataguard/dataguard dgpkg.conf
2. Specifying configuration parameters in the package
Once the package configuration file has been created, the user must specify various parameter
values. The parameters which are to be modified in dgpkg.conf specifically for this configuration
are only shown here.
NOTE: The package configuration file shown below contains attributes of both SGeRAC
toolkit and the ODG toolkit.
Note: The following attributes are specific to the SGeRAC RAC database module:
------------------------------------------------------------------------
#
# "package_name" is the name that is used to identify the package.
# Package names must be unique within a cluster.
#
package_name dgpkg
------------------------------------------------------------------------
#
# "package_description" specifies the application that the package runs.
#
package_description "SGeRAC Toolkit RAC instance package"
------------------------------------------------------------------------
#
# "package_type" is the type of package.
# The package_type attribute specifies the behavior for this package.
#
package_type multi_node
------------------------------------------------------------------------
#
# "run_script_timeout" is the number of Seconds allowed for package to start.
# "halt_script_timeout" is the number of Seconds allowed for package to halt.
#
run_script_timeout 600
halt_script_timeout 700
Note:"halt_script_timeout" has to be more than the sum of
all the individual "service_halt_timeout"s of the "service_cmds".
In SGeRAC toolkit this value is 600, by default.
Since the "service_halt_timeout"s for the service_cmds, "rac_check", and
"dataguard_monitor" are each 300, a value larger than 600 has to be
specified for "halt_script_timeout".
------------------------------------------------------------------------
# "script_log_file" is the full path name for the package control script log
# file.
script_log_file /etc/cmcluster/dataguard/pkg.log
---------------------------------------------------------------------------
#
# Define Oracle RAC instance package working directory
#
sgerac/erac_tk_rac/TKIT_DIR /etc/cmcluster/dataguard
---------------------------------------------------------------------------
#
# Define Oracle RAC instance package script file directory
#
sgerac/erac_tk_rac/TKIT_SCRIPT_DIR /opt/cmcluster/SGeRAC/toolkit/racp
------------------------------------------------------------------------
#
# Define Oracle Database name
#
sgerac/erac_tk_rac/ORACLE_DBNAME orcl
------------------------------------------------------------------------
#
# Define Oracle Home directory
#
sgerac/erac_tk_rac/ORACLE_HOME /var/orahome
Oracle Data Guard package configuration example 31