Database Reference
In-Depth Information
[ $OEM_DATABASES ] && rm -f ${OEM_DATABASES}
[ $OEM_LISTENERS ] && rm -f ${OEM_LISTENERS}
[ $MOVING_DATABASES ] && rm -f ${MOVING_DATABASES}
[ $MOVING_LISTENERS ] && rm -f ${MOVING_LISTENERS}
[ $EMCLI_SCRIPT ] && rm -f ${EMCLI_SCRIPT}
}
function ExitCleanly {
# --------------------------------------------------------------------------------------------------
CleanUpFiles
exit 0
}
function ExitDirty {
# --------------------------------------------------------------------------------------------------
CleanUpFiles
exit 1
}
function ListNicely {
# --------------------------------------------------------------------------------------------------
for thisLINE in `cat ${thisFILE}`; do
echo " ${thisLINE}"
done
}
# --------------------------------------------------------------------------------------------------
# Runtime procedure
# --------------------------------------------------------------------------------------------------
# Time stamp for the VCS log file
# --------------------------------------------------------------------------------------------------
echo "\n\n\n---------------------------------------------------------------------"
date
echo "---------------------------------------------------------------------\n\n\n"
CleanUpFiles
# -------------------------------------------------------------------------------------------------
# Gather VCS values for the members of the cluster
# --------------------------------------------------------------------------------------------------
# Test whether VCS recognizes the cluster name you passed at the command line
# by checking for the existence of node in OFFLINE mode. From that knowledge
# we can get the name of the HAGROUP and then associate the offline and online
# nodes with the appropriate variable based on their status after the
# VCS fail-over
if [ `sudo ${VCSBIN}/hastatus -summary | grep OFFLINE | grep ${1} | wc -l` -eq 0 ]; then
echo "\n\nThe VCS cluster ${1} does not exist on ${LOCAL_HOST}\n\n"
ExitDirty
Search WWH ::




Custom Search