17.6.1 Backup acquisition method
The following figure shows the general procedure for backing up a database.
The following subsections explain these steps in detail.
- Organization of this subsection
(1) Check the notes related to making a backup
Check the notes related to making a backup with reference to 10.3.1 Backup acquisition method.
(2) Terminate the cold standby configuration normally, or change the mode of the HADB server in the active system to the quiescence mode
Perform either of the following operations:
-
Execute the adbstop command and HA Monitor's monend command to terminate the cold standby configuration normally.
-
Execute the adbchgsrvmode command in the active system to change the mode of the HADB server in the active system to quiescence mode.
If you do not perform either of the above operations, database consistency cannot be achieved when the database is restored from a backup.
To check the status of the HADB server, execute the adbls -d srv command on the HADB server in the active system.
(3) Make a backup in the active system
Make a backup in the active system. For a list of files to back up, see (2) Backup procedure in 10.3.1 Backup acquisition method.
If a file to be backed up is a symbolic link file, you need a copy of the linked file or block special file. Do not use backed-up files as sparse files.
If the cold standby configuration has terminated normally, ensure that the DB directory has been mounted in $DBDIR before you start copying files. If the DB directory is not mounted, execute the mount OS command to mount the DB directory in $DBDIR.
(4) Start the cold standby configuration, or change the mode of the HADB server in the active system to normal mode
Perform either of the following operations:
-
When the adbstop command and HA Monitor's monend command were used to terminate the cold standby configuration normally before making a backup
Execute HA Monitor's monbegin command to start the cold standby configuration.
-
When the adbchgsrvmode command was used to change the mode of the HADB server in the active system to quiescence mode before making a backup
Execute the adbchgsrvmode command in the active system to change the mode of the HADB server in the active system to normal mode.