Hitachi

Hitachi Advanced Database Setup and Operation Guide


16.8.2 Recovering a database from a backup

The following figure shows the general procedure for recovering a database from a backup.

Figure 16‒5: General procedure for recovering a database from a backup (when the multi-node function is being used)

[Figure]

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 HADB servers in the multi-node configuration normally

Execute the adbstop command and HA Monitor's monend command to terminate the HADB servers in the multi-node configuration normally.

If you perform database recovery without first terminating normally the HADB servers in the multi-node configuration, database compatibility cannot be achieved.

(2) Recover files from the backup

Recover the files from the backup you acquired in (3) Back up files on the master node under 16.8.1 Backup acquisition method.

Furthermore, before recovering the files from backup, make sure that the system directory is mounted to $DBDIR/ADBSYS. If the directory is not mounted, execute the OS's mount command to mount the system directory to $DBDIR/ADBSYS.

(3) Start the HADB servers in the multi-node configuration

Execute the adbstart command and HA Monitor's monbegin command to start the HADB servers in the multi-node 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 on the master node to change the HADB server operation mode of the master node to the normal mode.

(5) Synchronize the synonym dictionary file

Execute the adbsyndict command to synchronize the synonym dictionary file. For details about how to synchronize the synonym dictionary file, see 16.24.5 Synchronizing synonym dictionary files.