Nonstop Database, HiRDB Version 9 System Operation Guide
This example recovers multiple RDAREAs, including the master directory RDAREA, to their status at the most recent synchronization point preceding the error.
In addition to these RDAREAs, you must also recover all related RDAREAs at the same time. For details about the related RDAREAs, see 6.3 RDAREAs to be backed up together.
Perform this operation only on user RDAREAs and user LOB RDAREAs (the original RDAREAs of user RDAREAs and the original RDAREAs of user LOB RDAREAs if the inner replica facility is used). If a row-partitioned table is defined, execute the pdrdrefls command with the -t option to identify the RDAREAs comprising the row-partitioned table.
If you need to recover more RDAREAs than the following example shows, add their names following the -r option.
pdrdrefls -k chk -e org -c ref -r rdarea01,rdarea02 |
For a HiRDB parallel server configuration, check the system log files of both the dictionary server and back-end server.
pdlogls -d sys |
To unload the content of the current file, swap the system log files. For a HiRDB parallel server configuration, swap the system log files of both the dictionary server and back-end server.
pdlogswap -d sys -w |
Unload the content of the current file checked in (2). For a HiRDB parallel server configuration, unload the contents of the current files of both the dictionary server and back-end server.
pdlogunld -d sys -s bes1 -g log01 -o /unld/unldlog02 |
pdstop -r |
If HiRDB cannot be terminated normally, enter the pdstop -f command to forcibly terminate it. This step is not necessary if HiRDB has already terminated abnormally.
pdstart -r |
Restore the RDAREAs to be recovered and all related RDAREAs. The related RDAREAs differ depending on which process has been executed since the last backup was acquired. For details about the related RDAREAs, see 6.3 RDAREAs to be backed up together. For example, if CREATE TABLE has been executed since the last backup was acquired, see CREATE TABLE in Table 6-3 RDAREAs to be backed up together.
pdrstr -m /rdarea/mast/mast01 -b /pdcopy/backup01 -r MASTER,DDIC,USER1,LOB11 -l /rdarea/jnldir/unload_log01 |
Back up the RDAREAs in case they are needed for the next database recovery.
pdcopy -m /rdarea/mast/mast01 -M x -b /pdcopy/backup02 -a |
pdstop |
pdstart |
If HiRDB already terminated abnormally as discussed in (5), or if it was forcibly terminated using the pdstop -f command, you must initialize the status file before starting HiRDB normally. First, enter the pdstsrm command to delete the status file, and then enter the pdstsinit command to re-create the status file.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.