Configuring HP Serviceguard Toolkit for Oracle Data Guard
5
As a combinational package, the Oracle database will be brought up first using the ECMT Oracle
Toolkit; then the Data Guard processes will be started by the ODG Toolkit; then the application
is monitored.
Since the Oracle database and the Data Guard are packaged together, the package will failover if
either the Oracle database or any of the Data Guard processes fail. Note that since the primary
database and all the standby databases are configured in separate clusters, separate combinational
packages must be created for each primary database and standby database.
Configuring an ODG Toolkit involves two scenarios:
1. If a customer already has an ECMT Oracle Toolkit package running and wants to convert the
Oracle database into a Data Guard setup, then:
– If the ECMT Oracle package is a legacy-style package, it must be migrated to modular style. You
can achieve this using the “cmmigratepkg” tool. Subsequently, a new combinational package
must be created. This is because the ODG Toolkit does not support legacy-style packaging.
However, migrating the legacy package to modular style is not the recommended way. The
recommended way is to discard the legacy package and create the Data Guard package afresh
in modular style.
– If the ECMT Oracle package is a modular-style package, the Data Guard module can be inserted
into it by using the following command:
cmmakepkg –i <pkg_ascii_file> -m <module_file_name> <output_file_name>
where:
– pkg_ascii_file is the package file of the existing ECMT Oracle package. This can be generated
using the command “cmgetconf –p <pkg_name> <output_filename>“
– module_file_name is the name of the module to be included in the running package. In case of
Data Guard package, its value will be tkit/dataguard/dataguard
– output_file_name is the template file that gets generated with the values of the ECMT Oracle
database module populated in it. The user must edit this file and enter values for the Data Guard
specific package attributes and then apply the package using the cmapplyconf command.
2. If the customer does not have an ECMT Oracle package running and wants to create the Data
Guard package afresh, then the command to create a combinational package is:
cmmakepkg –m ecmt/oracle/oracle –m tkit/dataguard/dataguard <pkg_file_name>
where:
– ecmt/oracle/oracle is the Oracle toolkit module shipped with ECMT Oracle Toolkit.
– tkit/dataguard/dataguard is the Data Guard toolkit module shipped with the ODG Toolkit.
– pkg_file_name is the template file that gets generated. The user needs to edit this file and enter
values for the ECMT Oracle specific package attributes and also for the Data Guard specific
package attributes, and then apply the file using cmapplyconf command to create the package.
NOTE: The package parameter, “START_MODE” must be set to “mount” when an ECMT Oracle
Toolkit is used in combination with an ODG Toolkit.
NOTE: In the case of Active Data Guard, the standby database will be started up to the “open” state.
The user should set the “ACTIVE_STANDBY” parameter to “yes” when he wants to use this feature.
Active Data Guard is supported in Oracle database version 11gR1 or later.