Primary host information
Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-4
Remote Mirroring of an Oracle Database Using Data Replicator Software
echo "that will be used. Along with any Volumes that may
also be utilized"
echo "during the erm.ksh shell script execution. This
script will read-in"
echo "various information from your environment including
lists of available"
echo "arrays, volumes, Volumes, etc. If they are defined
already,"
echo "you will not need to type them in. It they are not
defined you will have"
echo "to manually enter the values and ${B3}MAKE SURE
THEY MATCH${EB} after you create"
echo "them on the arrays."
echo "\n\nPress Enter to continue. \c"
read BLANK
fi
clear
#----------------------------
# Primary host information
#----------------------------
echo "${B1}PRIMARY HOST INFORMATION:${EB}\n"
STATUS=1
while (( STATUS != 0 )); do
echo "Enter the common name for the PRIMARY host that
will be used: [`tput sc` ]`tput rc`\c"
read PRI_HOST
echo "Primary host = $B2$PRI_HOST$EB"
prompt_usr
STATUS=$?
done
# Hard coded for support reasons
PRI_SCRIPT_DIR=/opt/LSI_ERM
PRI_LOG_DIR=$PRI_SCRIPT_DIR/logs
rsh $PRI_HOST "mkdir -p $PRI_LOG_DIR" > erm_setup.trace 2>&1
rsh $PRI_HOST "chmod 777 $PRI_LOG_DIR" > erm_setup.trace 2>&1
DB_TYPE=oracle
#---------------------------------
# Oracle Specific Information
#---------------------------------
# Get Oracle User ID
TMP_ID=oracle
STATUS=1
while (( STATUS != 0 )); do
echo "\nEnter the Oracle user ID on $PRI_HOST: [`tput
sc`$TMP_ID]`tput rc`\c"