Vous êtes sur la page 1sur 3

Start DB2 on HADR

1. Start DB2 instance on the Primary and Secondary

Steps
1. Start the all the db2 instances in the primary and standby node with their respective
instance owner id.
2. Instance name and owner are same in DB2 standby node as well. The DB2 instances can be
started in any order.
3. Login in to AIX using the respective instance owner account and execute “db2start” to start
the respective instances.

2. Start DB2 HADR

The HADR has to be started on the standby node first before HADR is initiated on the primary node.
HADR service has to start on every database.

Starting of HADR on BPMDB database – db2 instance i.e. <Username> is running.

Steps to start HADR:

Logon to AIX on the standby node using the DB2 instance owner, “user”.

Deactivate the database BPMDB using the following command “db2 deactivate database BPMDB”

Start the standby HADR on BPMDB using the following command “db2 start hard on db BPMDB as
standby”

Logon to AIX on the primary node using the DB2 instance owner, “<Username>”.

Deactivate the database BPMDB using the following command “db2 deactivate database BPMDB”

Start the standby HADR on BPMDB using the following command “db2 start hard on db BPMDB as
standby”
Following command can be used to check the HADR status on both the
nodes
“db2pd --hadr --db BPMDB”

The above procedure has to be followed for all the databases part of the HADR configuration.

Stop DB2 on HADR


1. Stop DB2 HADR

The HADR has to be stopped on the primary node first before HADR is stopped on the
standby node. HADR service has to stop on every database.
Stopping HADR on BPMDB database.
Steps to stop HADR:

1. Logon to AIX on the standby node using the DB2 instance owner, “<Username>”.
2. Deactivate the database BPMDB on primary node using the following command
“db2 deactivate database BPMDB”
3. Stop the primary HADR on BPMDB using the following command
“db2 stop hard on db BPMDB”
4. Logon to AIX on the primary node using the DB2 instance owner, “<Username>”.
5. Deactivate the database BPMDB on secondary node using the following command
“db2 deactivate database BPMDB”
6. Stop the standby HADR on BPMDB using the following command
“db2 stop hard on db BPMDB”

The above procedure has to be followed for all the databases part of the HADR configuration.

2. Stop DB2 instance on the Primary and Secondary

Stop the all the db2 instances in the primary and standby node with their respective instance
owner id.

DB2 instance for IBM BPM is <DB2 Instance> and the owner for the same is <DB2
Instance>.
DB2 instance for DSWM and DSC is <DB2 Instance> and the owner is <DB2 Instance>.

Instance name and owner are same in DB2 standby node as well. The DB2 instances can be
started in any order.
Login in to AIX using the respective instance owner account and execute “db2stop” to stop
the db2 instances.

Vous aimerez peut-être aussi