background image
<< Create backup controlfile | Take Oracle database out of backup mode >>
<< Create backup controlfile | Take Oracle database out of backup mode >>

Recreate snapshots

Oracle on the Sun Solaris OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C-4
Remote Mirroring of an Oracle Database Using Data Replicator Software
exit 0
Recreate a Snapshot
recreate ()
{
###########################################
# FUNCTION used to recreate snapshots #
###########################################
# Args:
# $1 = Index number of volume to process
display "Creating Flash Copy of ${VOL_MNT[$1]}"
SMcli -n "$RMT_SUBSYSTEM" -S -c "recreateFlashCopy
logicalDrive [\"${VOL_FC[$1]}\"];" >> $TRACE 2>&1
STATUS=$?
if (( STATUS != 0 )); then
Kill_WAIT 1
echo `date +%T`" ERROR: 30 - Unable to create
${VOL_FC[$1]} Flash Copy, errorcode $STATUS ***" >> $LOG
echo "\t${B1}ERROR: 30${EB} Unable to create
${VOL_FC[$1]} Flash Copy, STATUS=$STATUS."
return 1
else
echo `date +%T`" SUCCESS - Flash Copy of
${VOL_FC[$1]} created." >> $LOG
Kill_WAIT 0
return 0
fi
}
Resume a Primary Database on the Primary Site
#!/bin/ksh
PRI_DB_ID=$1
ORACLE_SID=$2
ORACLE_HOME=$3
ORA_DUMP=$4
LOG=$5
TRACE=$6
PRI_SCRIPT_DIR=$7
PRI_HOST=$8
export PRI_DB_ID
export ORACLE_SID
export ORACLE_HOME
export ORA_DUMP
export LOG
export TRACE