the target drive for Flash Copy
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The
sun_erm_setup.ksh
Script
Remote Mirroring of an Oracle Database Using Data Replicator Software
C-45
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 Logical Drives Copies on
$RMT_SUBSYSTEM are:\n"
while (( COUNTER < ${#VC_TMP[*]} )); do
echo "`expr $((COUNTER+1))` - ${VC_TMP[$COUNTER]}"
COUNTER=$((COUNTER+1))
done
COUNTER=0
while (( COUNTER < MIRROR_NUM )); do
STATUS=1
while (( STATUS != 0 )); do
echo "\nEnter the number of the target drive for
FlashCopy $B3${VOL_FC[$COUNTER]}$EB: [`tput sc` ]\b\b\c"
read CHOICE
while (( CHOICE == 0 || CHOICE > ${#VC_TMP[*]} )); do
echo "Invalid number, please re-enter.`tput
rc``tput cuu 1`\c"
read CHOICE
done
CHOICE=$((CHOICE-1))
VOL_VC[$COUNTER]=${VC_TMP[$CHOICE]}
echo "$B3${VOL_FC[$COUNTER]}$EB will be copied
to: $B2${VOL_VC[$COUNTER]}$EB"
prompt_usr
STATUS=$?
if (( STATUS == 0 )); then
COUNTER=$((COUNTER+1))
fi
done
done
ANS=N
while [[ $ANS != 'Y' ]]; do
echo "\nPlease select the priority level to use when
establishing Logical Drive"
echo "Copies. ${B3}STRONGLY RECOMMEND USING
\"HIGHEST\"!${EB}\n"
select VC_PRIORITY in HIGHEST HIGH MEDIUM LOW LOWEST