HP Serviceguard Toolkits for Database Replication Solutions User Guide, March 2012
Single-instance environment
The sample configuration mentioned below uses the installation directory mode operation. This
example on ODG package setup and configuration is for an ODG configuration using LVM. It
illustrates the creation of a package for ODG in a single-instance environment.
1. Creating a package configuration
• Create two packages: one for the primary database on the primary cluster and the other
for the standby database on the standby cluster.
• Create a directory in/etc/cmcluster,
for example, /etc/cmcluster/pkg/dgpkg
This directory becomes TKIT_DIR and cd to this directory.
• Run the following commands to create the package configuration file templates.
NOTE: For a single-instance database, the ODG toolkit must be used in combination
with the ECMT toolkit.
In the below mentioned example, the ODG toolkit module is used with the ECMT Oracle modules
as follows:
#cmmakepkg -m ecmt/oracle/oracle -m tkit/dataguard/dataguard dgpkg.conf
• Specifying configuration parameters in the package
After the package configuration file is created, you must specify various parameter values. Only
the parameters that are to be modified in dgpkg.conf specifically for this configuration are shown
here.
The package configuration file shown below contains attributes of both the ECMT Oracle toolkit
and the ODG toolkit.
The following attributes are specific to the Oracle toolkit in ECMT:
#
# “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 “Serviceguard Package”
------------------------------------------------------------------------
#
# “package_type” is the type of package.
# The package_type attribute specifies the behavior for this package.
#
package_type failover
------------------------------------------------------------------------
#
# “run_script_timeout” is the number of seconds allowed for the package to start.
# “halt_script_timeout” is the number of seconds allowed for the package to halt.
#
run_script_timeout 300
halt_script_timeout 600
------------------------------------------------------------------------
# “script_log_file“ is the full path name for the package control script log
# file.
script_log_file /etc/cmcluster/pkg/dgpkg/pkg.log
---------------------------------------------------------------------------
#
# Define package configuration directory
#
ecmt/oracle/oracle/TKIT_DIR /etc/cmcluster/pkg/dgpkg
------------------------------------------------------------------------
#
24 Serviceguard toolkit for Oracle Data Guard