background image
<< Discover volumes | Snapshot drive associated >>
<< Discover volumes | Snapshot drive associated >>

Invalid number

Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-12
Remote Mirroring of an Oracle Database Using Data Replicator Software
COUNTER=$((COUNTER+1))
done
# Add Empty Field for manual edits later
MIRROR_TMP[$COUNTER]=MANUAL_EDIT_VOL_MR
COUNTER=0
echo "The currently configured remote mirrors on
$B3${RMT_ARRAY}$EB are:\n"
while (( COUNTER < ${#MIRROR_TMP[*]} )); do
echo "`expr $((COUNTER+1))` - ${MIRROR_TMP[$COUNTER]}"
COUNTER=$((COUNTER+1))
done
COUNTER=0
while (( COUNTER < MIRROR_NUM )); do
STATUS=1
while (( STATUS != 0 )); do
echo "\nEnter the number of Volume Mirror number
`expr $((COUNTER+1))` [`tput sc` ]\b\b\c"
read CHOICE
while (( CHOICE == 0 || CHOICE > ${#MIRROR_TMP[*]}
)); do
echo "Invalid number, please re-enter.`tput
rc``tput cuu 1`\c"
read CHOICE
done
CHOICE=$((CHOICE-1))
VOL_MR[$COUNTER]=${MIRROR_TMP[$CHOICE]}
echo "Remote Mirror `expr $((COUNTER+1))` =
$B2${VOL_MR[$COUNTER]}$EB"
prompt_usr
STATUS=$?
done
COUNTER=$((COUNTER+1))
done
#-------------------------
# Get flash copy volumes
#-------------------------
echo "\n\n${B1}REMOTE SNAPSHOT INFORMATION:${EB}\n"
COUNTER=0
for X in `grep 'SNAPSHOT VOLUME NAME:' ${TMP_FILE[3]} |cut -f 2
-d :`; do
SNAP_TMP[$COUNTER]=$X
COUNTER=$((COUNTER+1))
done
# Add Empty Field for manual edits later
SNAP_TMP[$COUNTER]=MANUAL_EDIT_VOL_SP