background image
<< Disable snapshots | Database priviledges >>
<< Disable snapshots | Database priviledges >>

Check script variables

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .The
sun_erm.ksh
Script
Remote Mirroring of an Oracle Database Using Data Replicator Software
C-23
STATUS=$?
if (( STATUS != 0 )); then
echo `date +%T`" ERROR: 34 - Unable to deactivate
${VOL_MNT[$1]} Flash Copy, errorcode $STATUS ***" >> $LOG
Kill_WAIT 1
echo "\t${B1}ERROR: 34${EB} - Unable to deactivate
${VOL_MNT[$1]}, STATUS=$STATUS."
return 1
else
echo `date +%T`" SUCCESS - Flash Copy of
${VOL_MNT[$1]} deactivated." >> $LOG
Kill_WAIT 0
return 0
fi
}
WAIT ()
{
typeset -i COUNT=0
echo "`tput civis`[`tput setab 0`*`tput sc` `tput
sgr0`]\c"
tput rc
while :
do
while (( COUNT < 8 )); do
echo "`tput setaf 4``tput setab 0`\b *\c";
delay
COUNT=$((COUNT+1))
done
COUNT=0
while (( COUNT < 8 )); do
echo "`tput setaf 4``tput setab 0`\b\b*
\b\c"; delay
COUNT=$((COUNT+1))
done
COUNT=0
done
}
delay ()
{
ps > /dev/null 2>&1
ps > /dev/null 2>&1
ps > /dev/null 2>&1
ps > /dev/null 2>&1
ps > /dev/null 2>&1
}