19.3.2 Restoring in units of RDAREAs

Organization of this subsection
(1) Restoring in units of RDAREAs
(2) Restoring RDAREAs during operation without unloading the system log

(1) Restoring in units of RDAREAs

This example restores two user RDAREAs (RDAREA01 and RDAREA02) to the most recent status:

pdrstr -m /hirdb/rdarea/mast/mast01 -b /usr/hirdb/pdcopy/backup/backup01
-l /usr/hirdb/pdlogunld/unld01 -p /usr/hirdb/pdrstr/list/list01 -w /tmp/sortwork
-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.
-l: Specifies the name of the unload log file. This is the name of the unload log file that was created after the backup was made.
-p: Specifies the output file name for the database recovery utility process results listing.
-w: Specifies the work directory for sorting.
-r: Specifies that RDAREAs to be restored.

(2) Restoring RDAREAs during operation without unloading the system log

This example restores two user RDAREAs (RDAREA01 and RDAREA02) to the most recent status. It assumes that the HiRDB system is running without unloading the system log:

pdrstr -m /hirdb/rdarea/mast/mast01 -b /usr/hirdb/pdcopy/backup/backup01
-L -p /usr/hirdb/pdrstr/list/list01 -w /tmp/sortwork -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.
-L: Specifies that the system log file is to be read.
-p: Specifies the output file name for the database recovery utility process results listing.
-w: Specifies the work directory for sorting.
-r: Specifies that all RDAREAs are to be restored.