background image
<< Echo commands | Index number of volume >>
<< Echo commands | Index number of volume >>

Trace file for debugging

Oracle on the Linux OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D-18
Remote Mirroring of an Oracle Database Using Data Replicator Software
echo "\t${B1}ERROR: 32${EB} - Unable to unmount
${VOL_MNT[$1]}! -- Exiting Now!"
exit 32
else
echo `date +%T`" SUCCESS - Volume ${VOL_MNT[$1]}
is unmounted." >> $LOG
Kill_WAIT 0
return 0
fi
}
recreate ()
{
###########################################
#
FUNCTION used to recreate Snapshots
#
###########################################
# Args:
# $1 = Index number of volume to process
if [[ $VERIFY -eq 1 ]]; then
set -n
elif [[ $DEBUG -eq 1 && $VERIFY -eq 0 ]]; then
set -x
fi
display "Creating Flash Copy of ${VOL_MNT[$1]}"
# Write command to $TRACE file for debugging
echo "# SMcli -n \"$RMT_SUBSYSTEM\" -S -c \"recreateFlashCopy
logicalDrive [\"${VOL_FC[$1]}\"];\"" >> $TRACE
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
}
establish ()