Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

21.2.3 Example 2: Recovering specified RDAREAs

This example recovers specified user RDAREAs (rdarea01 and rdarea02) to their status at the backup acquisition point. 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.

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

(1) Identify the RDAREAs related to the RDAREAs to be recovered

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
 

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

 
pdclose -r rdarea01,rdarea02
 

(3) 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).

(4) Use the pdrels command to release the recovered RDAREAs from error shutdown status and open them

 
pdrels -r rdarea01,rdarea02 -o