Snapshot drive associated
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
erm_setup.ksh
Remote Mirroring of an Oracle Database Using Data Replicator Software
B-13
COUNTER=0
echo "The currently configured Snapshot Volumes on $RMT_ARRAY
are:\n"
while (( COUNTER < ${#SNAP_TMP[*]} )); do
echo "`expr $((COUNTER+1))` - ${SNAP_TMP[$COUNTER]}"
COUNTER=$((COUNTER+1))
done
COUNTER=0
while (( COUNTER < MIRROR_NUM )); do
STATUS=1
while (( STATUS != 0 )); do
echo "\nSelect the number of the Snapshot drive
associated with $B3${VOL_MR[$COUNTER]}$EB: [`tput sc` ]\b\b\c"
read CHOICE
while (( CHOICE == 0 || CHOICE > ${#SNAP_TMP[*]}
)); do
echo "Invalid number, please re-enter.`tput
rc``tput cuu 1`\c"
read CHOICE
done
CHOICE=$((CHOICE-1))
VOL_SP[$COUNTER]=${SNAP_TMP[$CHOICE]}
echo "Volume $B3${VOL_MR[$COUNTER]}$EB's Snapshot
drive = $B2${VOL_SP[$COUNTER]}$EB"
prompt_usr
STATUS=$?
done
COUNTER=$((COUNTER+1))
done
#--------------------------
# Get volume copy drives
#--------------------------
echo "\n\n${B1}REMOTE VOLUME COPY INFORMATION:${EB}\n"
COUNTER=0
for X in `grep '(T)' ${TMP_FILE[3]} |awk '{print $3}'`; do
VC_TMP[$COUNTER]=$X
COUNTER=$((COUNTER+1))
done
# Add Empty Field for manual edits later
VC_TMP[$COUNTER]=MANUAL_EDIT_VOL_VC
COUNTER=0
echo "The currently configured Volumes Copies on $RMT_ARRAY
are:\n"
while (( COUNTER < ${#VC_TMP[*]} )); do