This example recovers all RDAREAs, including the system RDAREAs, to the most recent synchronization point before an error occurred; it is assumed that a backup of the entire system (backup of all RDAREAs) is available. The system log is being unloaded.
In the case of a HiRDB/Parallel Server, check for the current system log files at the dictionary and back-end servers.
pdlogls -d sys |
To unload the current system log file, swap system log files. In the case of a HiRDB/Parallel Server, swap system log files at the dictionary and back-end servers.
pdlogswap -d sys |
Unload the current system log file checked in step (1).
In the case of a HiRDB/Parallel Server, unload the current system log files at the dictionary and back-end servers.
pdlogunld -d sys -g log01 -o /unld/unldlog02 |
If HiRDB will not terminate normally, initialize the status files, use the pdstsrm command to delete the status files, then use the pdstsinit command to re-create the status files.
pdstop |
Use another product's facility to recover the master directory RDAREA to a backup acquisition point.
pdstart -r |
pdrstr -m /rdarea/mast/mast01 -l /unld/unldlog01,/unld/unldlog02 |
Use another product's facility to recover the following RDAREAs to a backup acquisition point:
pdstop |
pdstart |
Shut down and close all RDAREAs except the master directory RDAREA and data dictionary RDAREA.
pdhold -r rddir,diclob,regrd,reglob,rdarea01,rdarea02,... -c |
The data dictionary RDAREA must be shut down and closed last.
pdhold -r rddic -c |
pdrstr -m /rdarea/mast/mast01 -l /unld/unldlog01,/unld/unldlog02 |
The data dictionary RDAREA must be released from shutdown status and opened first.
pdrels -r rddic -o |
Open all RDAREAs except the master directory and data dictionary RDAREAs by releasing their shutdown status.
pdrels -r rddir,diclob,regrd,reglob,rdarea01,rdarea02,... -o |
pdstop |
Use another product's backup facility to back up all RDAREAs.
pdstart |
The procedure for recovering the data dictionary LOB RDAREA for storing objects is described below.
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.