Veritas FlashSnap Point-In-Time Copy Solutions 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009

cd ${rep_mnt_point}/dbase_vol
for i in 1 2 3 4 5 6 # adjust as required
do
rm -f ./log$i
ln -s ${rep_mnt_point}/dbase_logs/log$i ./log$i
done
# Remove the existing control file.
rm -f ${rep_mnt_point}/dbase_vol/cntrl1
# Create a new control file, recover and start the replica database.
svrmgrl <<!
connect internal
@c_file_create.sql
set autorecovery on
recover database until cancel using backup controlfile;
alter database open resetlogs;
quit
!
Script to start a replica Sybase ASE database
Use this script to start a replica Sybase ASE database.
#!/bin/ksh
#
# script: startdb.sh <list_of_database_volumes>
#
# Sample script to recover and start replica Sybase ASE database.
# Import the snapshot volume disk group.
vxdg import $snapvoldg
# Mount the snapshot volumes (the mount points must already exist).
for i in $*
do
fsck -F vxfs /dev/vx/rdsk/$snapvoldg/snap_$i
mount -F vxfs /dev/vx/dsk/$snapvoldg/snap_$i ${rep_mnt_point}/$i
Files and scripts for sample scenarios
Script to start a replica Sybase ASE database
94