19.3.4 Example 4: When JP1/OmniBack II is used for recovery)
(1) Use pdclose command to close RDAREAs in error shutdown status
pdclose -r rdarea01,rdarea02 |
(2) Use pdlogls command to check for current system log file
In the case of a HiRDB/Parallel Server, check for the system log files at the back-end servers in which rdarea01 and rdarea02 are located.
(3) Use pdlogswap command to swap system log files
The system log files are swapped so that the current file can be unloaded. In the case of a HiRDB/Parallel Server, swap the system log files at the back-end servers in which rdarea01 and rdarea02 are located.
(4) Use pdlogunld command to unload what was the current file
Unload the current file identified in step (2).
pdlogunld -d sys -g log01 -o /unld/unldlog02 |
(5) Check for objects to be used for recovery
Use the omnidb command of JP1/OmniBack II to check for the objects to be used for recovery. Specify the -stream option in the omnidb command.
(6) Use pdrstr command to recover RDAREAs to most recent synchronization point
pdrstr -m /rdarea/mast/mast01 -k o -b host01:backup01 -G DLT01
-l /unld/unldlog01,/unld/unldlog02 -w /tmp/sortwork -r rdarea01,rdarea02 |
- Explanation
- -m: Specifies the name of the first HiRDB file in the master directory RDAREA.
- -k: Specifies the type of backup file. o is specified because a JP1/OmniBack II object is used.
- -b: Specifies the name of the backup file that stores the backup of rdarea01 and rdarea02. Specifies the name of a JP1/OmniBack II object as the backup file name. The specification format is host-name: object-name.
- -G: Specifies the name of the barlist file.
- -l: Specifies the names of the unload log files.
- -w: Specifies the name of the work directory for sorting.
- -r: Specifies the names of the RDAREAs (rdarea01 and rdarea02) that are to be recovered.
- For recovery with a range specification, specify a recovery termination time in the -T option. If this option is not specified, the RDAREAs will be recovered to the most recent synchronization point before the error occurred.
- If some unload log files cannot be entered because of an error in the system log file or unload log file, analyze the most recent unload log file that could be entered in order to narrow the range that cannot be recovered. Then, if necessary, re-execute the transaction.
(7) Use pdcopy command to back up recovered RDAREAs
pdcopy -m /rdarea/mast/mast01 -M x -r rdarea01,rdarea02 -k o
-b host01:backup002 -G DLT02 |
- Explanation
- -m: Specifies the name of the first HiRDB file in the master directory RDAREA.
- -M: Specifies the referencing/updating-impossible mode as the backup acquisition mode.
- -r: Specifies the RDAREAs to be backed up (rdarea01 and rdarea02, the RDAREAs in which the error occurred).
- -k: Specifies the type of backup file. o is specified because a JP1/OmniBack II object is used.
- -b: Specifies the name of a JP1/OmniBack II object as the backup file name. The specification format is host-name: object-name.
- -G: Specifies the name of the barlist file.
(8) Use pdrels command to release error shutdown status of recovered RDAREAs and open them
pdrels -r rdarea01,rdarea02 -o |
It is recommended that after the command has executed you check whether or not the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 8 Command Reference.