Restarting local database
Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-38
Remote Mirroring of an Oracle Database Using Data Replicator Software
#-------------------------------------
# Now would be an EXCELLENT time to clean your work place, go to
lunch (and dinner), etc....
# In other words, this may take a LONG time depending on the size
of your volumes
STATUS=1
COUNT=0
while (( STATUS != 0 )); do
vc_wait ${#VOL_MNT[*]}
STATUS=$?
COUNT=$((COUNT+1))
if [[ $COUNT -eq 12 && $VC_PRIORITY -ne 'HIGHEST' ]]; then
echo "\nPerhaps you should change your Volume Copy priority
to 'HIGHEST',"
echo "by modifying $RMT_SCRIPT_DIR/$CFG_FILE and changing
VC_PRIORITY to HIGHEST\n"
echo `date +%T`" WARNING - Consider changing VC_PRIORITY
to HIGHEST" >> $LOG
fi
done
#--------------------------
# Deactivate Snapshots
#--------------------------
VX=0
while (( VX < ${#VOL_MNT[*]} )); do
disable $VX
VX=$((VX+1))
done
#---------------------------
# Import New Volume Groups
#---------------------------
# This is to manage the logical drives under AIX volume manager
vgimport
#-------------------------
# Mounting Volume Copies
#-------------------------
VX=0; STATUS=0
while (( VX < ${#VOL_MNT[*]} )); do
mountv $VX
STATUS=$((STATUS+$?))
VX=$((VX+1))
done
if (( STATUS > 0 )); then
echo "${B1}ERROR:${EB} Can not mount all volume copies,
exiting now!"