Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)
Script to end Oracle database hot backup mode
Use this script to end Oracle database hot backup mode.
#!/bin/ksh
#
# script: backup_end.sh
#
# Sample script to end hot backup mode for example Oracle database.
export ORACLE_SID=dbase
export ORACLE_HOME=/oracle/816
export PATH=$ORACLE_HOME/bin:$PATH
svrmgrl <<!
connect internal
alter tablespace ts1 end backup;
# .
# . End hot backup mode for all required tablespaces.
# .
alter tablespace tsN end backup;
alter system switch logfile;
alter system switch logfile;
archive log list;
quit
!
# Note: The repeated line alter system switch logfile, forces
# a checkpoint and archives the contents of the redo logs
# recorded during the backup.
Script to release a Sybase ASE database from quiesce
mode
Use this script to release a Sybase ASE database from quiesce mode.
#!/bin/ksh
#
# script: backup_end.sh
#
# Sample script to release example Sybase ASE database from quiesce mode.
517Files and scripts for sample scenarios
Script to end Oracle database hot backup mode