19.2.2 Example 2: Recovering specified RDAREAs

This example recovers specified user RDAREAs (rdarea01 and rdarea02) to their status at the backup acquisition point.

Organization of this subsection
(1) Use the pdclose command to close RDAREAs in error shutdown status
(2) Use the pdrstr command to recover the RDAREAs
(3) Use the pdrels command to release the recovered RDAREAs from error shutdown status and open them

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

pdclose -r rdarea01,rdarea02

(2) Use the pdrstr command to recover the RDAREAs

pdrstr -m /rdarea/mast/mast01 -b /pdcopy/backup01 -r rdarea01,rdarea02

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-b: Specifies the name of the backup file containing the backup data for rdarea01 and rdarea02.
-r: Specifies the names of the RDAREAs to be recovered (rdarea01 and rdarea02).

(3) Use the pdrels command to release the recovered RDAREAs from error shutdown status 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.