Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)
# 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.
for i in ‘echo $snapvollist‘
do
vxrecover -g $dbasedg -m $i
vxvol -g $dbasedg start $i
done
# Reattach the snapshot volumes ready for the next backup cycle.
vxsnap -g $dbasedg reattach $volsnaplist
Script to put an Oracle database into hot backup mode
Use this script to put an Oracle database into hot backup mode.
#!/bin/ksh
#
# script: backup_start.sh
#
# Sample script to put example Oracle database into hot backup mode.
export ORACLE_SID=dbase
export ORACLE_HOME=/oracle/816
export PATH=$ORACLE_HOME/bin:$PATH
svrmgrl <<!
connect internal
archive log list;
alter tablespace ts1 begin backup;
# .
# . Put all required tablespaces into hot backup mode
# .
515Files and scripts for sample scenarios
Script to put an Oracle database into hot backup mode