19.5.4 Example 4: Recovering specified RDAREAs

This example recovers user RDAREAs (rdarea01 and rdarea02) to the most recent synchronization point before an error occurred. The system log is being unloaded.

Organization of this subsection
(1) Use the pdclose command to close RDAREAs in error shutdown status
(2) Use the pdlogls command to check for the current system log file
(3) Use the pdlogswap command to swap system log files
(4) Use the pdlogunld command to unload what was the current system log file
(5) Recover RDAREAs to the backup point
(6) Use pdrstr command to recover RDAREAs to most recent synchronization point
(7) Back up recovered RDAREAs
(8) Use the pdrels command to open recovered RDAREAs by releasing them from error shutdown status

(1) Use the pdclose command to close RDAREAs in error shutdown status

pdclose -r rdarea01,rdarea02

(2) Use the pdlogls command to check for the current system log file

In the case of a HiRDB/Parallel Server, check the system log files at the dictionary and back-end servers.

pdlogls -d sys

(3) Use the pdlogswap command to swap system log files

To unload the current file, swap system log files. In the case of a HiRDB/Parallel Server, swap system log files at the back-end servers where rdarea01 and rdarea02 are located.

pdlogswap -d sys

(4) Use the pdlogunld command to unload what was the current system log file

Unload the current system log file identified in step (2).

pdlogunld -d sys -g log01 -o /unld/unldlog02

(5) Recover RDAREAs to the backup point

Use another product's restore facility to recover rdarea01 and rdarea02 to a backup acquisition point.

(6) Use pdrstr command to recover RDAREAs to most recent synchronization point

pdrstr -m /rdarea/mast/mast01 -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.
-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) to be recovered.

(7) Back up recovered RDAREAs

Use another product's backup facility to back up rdarea01 and rdarea02.

(8) Use the pdrels command to open recovered RDAREAs by releasing them from error shutdown status

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.