<agentlease@hotmail.comwrote in message
news:0481bdf8-eb8a-4453-9235-e294c03c17e7@x16g2000prn.googlegroups.com...
Quote:
Hi,
>
If the HADR state is 'Disconnected' and commit transactions to the
Primary database, in the event of a Failover to the Standby database,
how do we determine if it is safe i.e. how do we know how far behind
the standby database is?
>
Basically what is the procedure to determine if it's safe to do a
failover to the standby with a takeover hadr .....force.
It is only safe to do a takeover by force if the primary server is not
available to the application (crashed, network connection is not accessible,
etc). If you are automating the takeover with a Cluster Manager, then make
sure your instance is not on autostart.
You can run a command on the primary and standby to see where the log
position is. Normally if they are in peer state you can run it from either
server, but if in disconnected state you would have run it on each server to
get the log position of each. You have two choices:
db2 get snapshot for database on <dbname(there is section on HADR in the
output)
db2pd -d <dbname-hadr