HP Serviceguard Toolkits for Database Replication Solutions manual Files for the ADF module

Page 21

Table 2 Files created on installation of the HP Serviceguard toolkit for Oracle Data Guard

File Name

Description

Available in Directory

SGAlert.sh

Alert Mail generation script

/opt/cmcluster/toolkit/

Main Script in Single

This script contains a list of internally

dataguard

 

Instance Environment

used variables and functions that

 

(hadg.sh)

support the starting, stopping, and

 

 

monitoring of an ODG instance. This

 

 

script is called by tkit_module.sh to

 

 

perform the following:

 

 

On package startup, it starts the

 

 

Data Guard instance

 

 

(primary/standby) and launches

 

 

monitor processes.

 

 

On package halt, it stops the Data

 

 

Guard instance and monitor

 

 

process.

 

User configuration file

This script contains a list of predefined

(hadg.conf)

variables that the user must customize

 

for use with a particular database

 

instance. This is a configuration file

 

that is read by the toolkit script,

 

hadg.sh

Main Script in RAC

This script contains a list of internally

Environment (hadg_rac.sh)

used variables and functions that

 

support the starting, stopping and

 

monitoring of an ODG instance. This

 

script is called by tkit_module.sh to

 

perform the following:

 

On package startup, it starts the

 

data guard RAC instance

 

primary/standby) and launches

 

monitor processes.

 

On package halt, it stops the data

 

guard RAC instances and monitor

 

processes.

External_pre Interface

This external script is used in

Script (hadg_rac_cc.sh)

Continentalclusters environment. It

 

coordinates role transitions in the

 

recovery package of

 

Continentalclusters.

README

File that includes integration

 

instructions

Table 3 Files for the ADF module

File Name

Description

Available in Directory

dataguard

Soft link to dataguard.1

/etc/cmcluster/modules/tkit/

Attribute Definition File

ADF module definition for ODG toolkit

dataguard

 

(dataguard.1)

 

 

Setting up Oracle Data Guard toolkit 21

Image 21
Contents HP Part Number Published August Edition Page Contents Glossary Index Introduction Advantages OverviewSupported configuration DependenciesSingle-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 Multiple Data Guard instances in each Serviceguard cluster Configuring multiple instances of Oracle Data GuardInstalling and uninstalling Oracle Data Guard toolkit Setting up Oracle Data Guard toolkit# swinstall -s depot path High availability for data guard broker# swlist -l product T2259AA Files for the ADF module Activestandby Package attributes Configuring Oracle Data Guard toolkitFor example, /etc/cmcluster/pkg/dgpkg Single-instance environmentSetting up Oracle Data Guard toolkit #ecmt/oracle/oracle/LISTENERRESTART Servicefailfastenabled no servicehalttimeout For example, /etc/cmluster/pkg/racdgpkg RAC environmentWhere ocmnp is the Smnp package for Oracle CLusterware Maintaining Oracle Data Guard toolkit Adding the package to the Serviceguard clusterSingle-instance environment Cluster verification for Oracle Data Guard toolkitTroubleshooting Pkg.conf commandLimitations Startstandbyasprimary to yes Prerequisites Supported configuration Using the DB2 Hadr toolkitEvent 1 Standby database or Hadr goes down When primary and standby packages are in the same clusterEvent 2 Primary package fails Primary and Standby Packages in Different Clusters When primary and standby packages are in different clustersTo provide high availability only to primary database Creating packagesGo to the /etc/cmcluster/hadrprimary directory Cmmakepkg -m ecmt/db2/db2 -m tkit/db2hadr/db2hadr pkg.confInstancename Hadrip Running packages Managing packagesMaintaining packages And, $ cmmodpkg -e hadrpkg# cmhaltpkg packagename Halting packagesHost key verification failed. Lost connection Limitations Information to collect before contacting HP How to contact HPHP authorized resellers Warranty informationDocumentation feedback Related information Typographic conventionsTIP Node3# /usr/bin/ssh-keygen -t rsa Db2 get db cfg for db2 database name grep -i hardNode3# /usr/bin/ssh-keygen -t dsa Node2# /usr/bin/ssh-keygen -t rsaPage To add a new key to/home/user/.ssh/knownhosts Page Glossary Index