VERITAS FlashSnap Point-In-Time-Copy Solutions Administrator's Guide

Script to Initiate Online Off-Host Oracle Database Backup
68 VERITAS FlashSnap Point-In-Time Copy Solutions Administrators Guide
# Move the snapshot volumes into a separate disk group.
vxdg split $dbasedg $snapdg $vollist
# Deport the snapshot disk group.
vxdg deport $snapdg
# The snapshots of the database can be imported and backed up
# on the OHP node and then deported.
# Note: Replace “rsh” with “remsh” on HP-UX systems.
rsh $dbnode -c “do_backup.sh $vollist”
# Import the snapshot disk group -- if the database disk group is
# cluster-shareable, you must also specify the -s option.
vxdg import $snapdg
# Join the snapshot disk group to the original volume disk group.
vxdg join $snapdg $dbasedg
# Restart the snapshot volumes ready for the next backup cycle.
for i in ‘echo $snapvollist‘
do
vxrecover -g $dbasedg -m $i
vxvol -g $dbasedg start $i
done