background image
<< Unmount any local Volume Copies | Deactivate Snapshots >>
<< Unmount any local Volume Copies | Deactivate Snapshots >>

Resume database on Primary host

Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-36
Remote Mirroring of an Oracle Database Using Data Replicator Software
STATUS=$?
if (( STATUS > 0 )); then
Kill_WAIT 1
echo "\t${B1}ERROR:${EB} Bummer, can't shutdown local
database; Gotta exit now"
echo "\tCheck $RMT_LOG_DIR/$DB_NAME.trace file for details\n"
echo `date +%T`" ERROR! - Can NOT shutdown local database"
>> $LOG
exit 1
else
echo `date +%T`" SUCCESS - Local database has been shutdown"
>> $LOG
Kill_WAIT 0
fi
#-----------------------------------
# Unmount any local Volume Copies
#-----------------------------------
VX=0
while (( VX < ${#VOL_MNT[*]} )); do
unmount $VX
VX=$((VX+1))
done
#------------------------------------
# Suspend database on Primary host
#------------------------------------
display "Suspending database on $PRI_HOST"
rsh $PRI_HOST -l $PRI_DB_ID $PRI_SCRIPT_DIR/db_suspend $ORA_SID
$ORA_HOME $PRI_LOG_DIR > /dev/null 2>>$TRACE
STATUS=$?
rcp $PRI_HOST:$PRI_LOG_DIR/${PRI_HOST}_${ORA_SID}_trace.tmp
$PRI_DB_TRACE > /dev/null 2>&1
if (( STATUS > 0 )); then
Kill_WAIT 1
echo `date +%T`" ERROR! - Could not suspend primary
database" >> $LOG
echo `date +%T`" Check $PRI_DB_TRACE file for
details" >> $LOG
echo "\t${B1}ERROR:${EB} Could not suspend database on
$PRI_HOST"
echo "\tCheck $PRI_DB_TRACE file and $LOG for details"
else
echo `date +%T`" SUCCESS - Database $ORA_SID was suspended
on $PRI_HOST" >> $LOG
Kill_WAIT 0
fi
#-------------------------------------