background image
<< Disable Snapshots | Script variables and file access >>
<< Disable Snapshots | Script variables and file access >>

Data Replicator Software

Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-32
Remote Mirroring of an Oracle Database Using Data Replicator Software
return 1
else
echo `date +%T`" SUCCESS - Snapshot 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
}
trap_WAIT ()
{
if [[ $1 -eq 0 ]]; then
echo "`tput rc``tput sgr0``tput setab 0``tput
setaf 2`\b OK "
elif [[ $1 -eq 1 ]]; then