DB2 Instance owner
Oracle on the Sun Solaris OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C-38
Remote Mirroring of an Oracle Database Using Data Replicator Software
STATUS=1
while (( STATUS != 0 )); do
echo "\nEnter the common name for the REMOTE host that
will be used. [`tput sc``hostname`]`tput rc`\c"
read RMT_HOST
if [[ ! -n $RMT_HOST ]]; then
RMT_HOST=`hostname`
fi
echo "Remote host = ${B2}$RMT_HOST${EB}"
prompt_usr
STATUS=$?
done
RMT_SCRIPT_DIR=/opt/LSI_ERM
RMT_LOG_DIR=$RMT_SCRIPT_DIR/logs
mkdir -p $RMT_LOG_DIR >> sun_erm_setup.trace 2>&1
if [[ $DB_TYPE == 'db2' ]]; then
TMP_ID=db2inst1
STATUS=1
while (( STATUS != 0 )); do
echo "\nEnter the Remote site's DB2 Instance owner
ID: [`tput sc`$TMP_ID]`tput rc`\c"
read RMT_DB_ID
if [[ ! -n $RMT_DB_ID ]]; then
RMT_DB_ID=$TMP_ID
fi
echo "Database owner ID = ${B2}$RMT_DB_ID${EB}"
prompt_usr
STATUS=$?
done
fi
#########################
# TEST SMcli ACCESS #
#########################
if [[ ! -x /usr/sbin/SMcli ]]; then
CLIENT=0
echo "${B1}ERROR!${EB}\n"
echo "\tUnable to execute /usr/sbin/SMcli, must have root
access to execute and"
echo "\thave IBM DS4000 Storage Manager installed on both
hosts."
echo "\n\nPress Enter to Exit NOW!"
read BLANK