Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)
newvollist=”snap_dbase_vol source=dbase_vol/newvol=snap_dbase_vol”
snapvollist=”snap_dbase_vol”
volsnaplist=”snap_dbase_vol source=dbase_vol”
exit_cnt=0
arch_loc=/archlog
# Put the Oracle database in hot-backup mode;
# see the backup_start.sh script for information.
su oracle -c backup_start.sh
# Refresh the snapshots of the volumes.
#
# Note: If the volume is not mounted, you can safely ignore the
# following message that is output by the snapshot operation:
#
# ERROR: Volume dbase_vol: No entry in /etc/mnttab for volume
vxsnap -g $dbasedg make $newvollist
# Take the database out of hot-backup mode;
# see the backup_end.sh script for information.
su oracle -c backup_end.sh
# Back up the archive logs that were generated while the database
# was in hot backup mode (as reported by the Oracle Server Manager).
# Move the snapshot volumes into a separate disk group.
vxdg split $dbasedg $snapdg $snapvollist
# 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 $snapvollist”
# Import the snapshot disk group -- if the database disk group is
Files and scripts for sample scenarios
Script to initiate online off-host backup of an Oracle database
514