Let explain this way.
- HADR is based on log replay.
- Initialize the standby with a backup or split mirror image of the primary.
- You then configure and start HADR on the primary and standby databases.
- The primary ships its transaction log data to the standby via a TCP connection.
- The standby continuously replays the log records to keep itself in sync with the primary.
If the primary fails, you issue a "takeover HADR by force" command on the standby to make the standby the new primary. A single command does it all. For planned maintenance, you issue a "takeover HADR" (without "by force" option) command to switch primary and standby's roles. HADR management is so simple. There are only 3 commands: Start HADR, stop HADR, and takeover HADR.
Comments