17.6.2 Recovering a database from a backup
The following figure shows the general procedure for recovering a database from a backup.
When recovering a database from a backup, also see 10.3.2 Recovering the database from the backup.
The following subsections explain the steps shown in the above figure.
- Organization of this subsection
(1) Terminate the cold standby configuration normally
Execute the adbstop command and HA Monitor's monend command to terminate the cold standby configuration normally.
If you perform database recovery without first terminating the cold standby configuration normally, database compatibility cannot be achieved.
(2) Recover files from the backup
Recover the files from the backup you acquired in (3) Make a backup in the active system under 17.6.1 Backup acquisition method.
Furthermore, before recovering the files from backup, make sure that the DB directory is mounted to $DBDIR. If the directory is not mounted, execute the OS's mount command to mount the DB directory to $DBDIR.
(3) Start the cold standby configuration
Execute HA Monitor's monbegin command to start the cold standby configuration.
(4) Change the HADB server operation mode to the normal mode
If an HADB server is started after the database has been recovered from a backup that was acquired in the quiescence mode, the HADB server remains in the quiescence mode. In this case, execute the adbchgsrvmode command in the active system to change the HADB server operation mode to normal mode.