Nonstop Database, HiRDB Version 9 System Operation Guide
- Example
- While the system is operating without unloading the system log, data is backed up after a synchronization point dump has been validated so that the system log files created before the backup can be released:
#!/bin/sh
$PDDIR/bin/pdlogsync -d sys -w
if [ $status = 0 ] ; then
$PDDIR/bin/pdcopy -m host2:/dbarea/area1/rdmt1 -i -p /usr/ofile
-f /usr/seifile/cofl01
-z /usr/logpoint/logp01
else
echo "synchronization-point-dump-validation-error"
fi
|
- Explanation
- Because the -w option is specified in the pdlogsync command, the synchronization point dump has been validated if the return code is 0.
- When the synchronization point dump is validated, the database copy utility (pdcopy command) is used to execute backup processing. If validation failed, backup processing is not executed.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.