HP Serviceguard Toolkits for Database Replication Solutions manual Activestandby

Page 22

Table 4 Module scripts of the HP Serviceguard toolkit for Oracle Data Guard

File Name

Description

Available in Directory

Toolkit Module Script

This script is called by the Master

/etc/cmcluster/scripts/tkit/

(tkit_module.sh)

Control Script and acts as an interface

dataguard

 

between the Master Control Script and

 

 

the toolkit interface script

 

 

(hadg.sh/hadg_rac.sh). It is also

 

 

responsible for calling the toolkit

 

 

Configuration File Generator Script

 

 

(described below).

 

Toolkit Configuration File

This script is called by the Module

 

Generator Script

Script when the package configuration

 

(tkit_gen.sh)

is applied using cmapplyconf to

 

 

generate the user configuration file

 

 

(hadg.conf) in the package directory

 

 

(TKIT_DIR).

 

External_pre Module Script

This script is called by the Master

 

(cc_ext.sh)

Control Script and acts as an interface

 

 

between the Master Control Script and

 

 

the External_pre interface script

 

 

(hadg_rac_cc.sh). This external script

 

 

is used in Continentalclusters

 

 

environment.

 

The following parameters must be provided in the Package Configuration File Table 5 Package attributes

Variable Name

Description

ACTIVE_STANDBY

This parameter determines whether Active Data Guard

 

must be enabled on a Physical standby database instance

 

or not. The Active Data Guard Option available with

 

Oracle Database 11g Enterprise Edition enables the

 

physical standby database to be opened for read-only

 

access. To enable this feature, you can set the toolkit to

 

[yes] in a package for Physical Standby database. The

 

default value is [no].

 

NOTE: To enable Active Data Guard, the user needs an

 

optional license from Oracle. Therefore, you must not set

 

the toolkit parameter to [yes] without a license.

MONITOR_DG_BROKER

The ODG Broker is a distributed management framework

 

that automates the creation, maintenance, and monitoring

 

of Data Guard configurations. The parameter

 

MONITOR_DG_BROKER specifies whether the ODG broker

 

can be used or not. It can take values [yes] or [no]. The

 

default value is [no]. This parameter can be used in RAC

 

environment only. Data Guard Broker is not supported in

 

the toolkit in Single Instance database environment.

 

NOTE: If broker configuration is enabled when this

 

parameter is set to [no], the toolkit fails the package startup

 

to avoid issues. Therefore, this must be avoided.

REAL_TIME_APPLY

This is an ODG feature that enables log apply services to

 

apply redo data as it is received, without waiting for the

 

current standby redo log file to be archived. This results in

 

faster switch over and failover times. To enable this feature

 

with the toolkit set the toolkit parameter

 

REAL_TIME_APPLY to [yes] in the package configuration

 

file. The default value is [no].

22 Serviceguard toolkit for Oracle Data Guard

Image 22
Contents HP Part Number Published August Edition Page Contents Glossary Index Introduction Overview AdvantagesDependencies Supported configurationSingle-instance Oracle database Cmmakepkg -i pkgasciifile -m modulefilename outputfilename RAC environment RAC environmentServiceguard toolkit for Oracle Data Guard Data Guard replication between RAC primary and RAC standby Continentalclusters environment Continentalclusters environment Metrocluster and extended distance cluster environments Supported configuration Data Guard setup in an EDC environment Three data center configuration Configuring multiple instances of Oracle Data Guard Multiple Data Guard instances in each Serviceguard cluster# swinstall -s depot path Setting up Oracle Data Guard toolkitInstalling and uninstalling Oracle Data Guard toolkit High availability for data guard broker# swlist -l product T2259AA Files for the ADF module Activestandby Configuring Oracle Data Guard toolkit Package attributesSingle-instance environment For example, /etc/cmcluster/pkg/dgpkgSetting up Oracle Data Guard toolkit #ecmt/oracle/oracle/LISTENERRESTART Servicefailfastenabled no servicehalttimeout RAC environment For example, /etc/cmluster/pkg/racdgpkgWhere ocmnp is the Smnp package for Oracle CLusterware Adding the package to the Serviceguard cluster Maintaining Oracle Data Guard toolkitCluster verification for Oracle Data Guard toolkit Single-instance environmentPkg.conf command TroubleshootingLimitations Startstandbyasprimary to yes Prerequisites Using the DB2 Hadr toolkit Supported configurationWhen primary and standby packages are in the same cluster Event 1 Standby database or Hadr goes downEvent 2 Primary package fails When primary and standby packages are in different clusters Primary and Standby Packages in Different ClustersGo to the /etc/cmcluster/hadrprimary directory Creating packagesTo provide high availability only to primary database Cmmakepkg -m ecmt/db2/db2 -m tkit/db2hadr/db2hadr pkg.confInstancename Hadrip Maintaining packages Managing packagesRunning packages And, $ cmmodpkg -e hadrpkgHalting packages # cmhaltpkg packagenameHost key verification failed. Lost connection Limitations How to contact HP Information to collect before contacting HPDocumentation feedback Warranty informationHP authorized resellers Related information Typographic conventionsTIP Node3# /usr/bin/ssh-keygen -t dsa Db2 get db cfg for db2 database name grep -i hardNode3# /usr/bin/ssh-keygen -t rsa Node2# /usr/bin/ssh-keygen -t rsaPage To add a new key to/home/user/.ssh/knownhosts Page Glossary Index