background image
<< Dispaly whirl durring operations | Primary host information >>
<< Dispaly whirl durring operations | Primary host information >>

Running Scripts as Root

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
erm_setup.ksh
Remote Mirroring of an Oracle Database Using Data Replicator Software
B-3
ps > /dev/null; ps > /dev/null; ps > /dev/null ;;
"5") echo "|\b\c"
sleep $INTERVAL
ps > /dev/null; ps > /dev/null; ps > /dev/null ;;
"6") echo "/\b\c"
sleep $INTERVAL
ps > /dev/null; ps > /dev/null; ps > /dev/null ;;
"7") echo '-'"\b\c"
sleep $INTERVAL
ps > /dev/null; ps > /dev/null; ps > /dev/null ;;
"8") echo '\\'"\b\c"
sleep $INTERVAL
ps > /dev/null; ps > /dev/null; ps > /dev/null ;;
*) TCOUNT="0" ;;
esac
done
}
#-------------------------------------------------------------
# End Function definitions
#-------------------------------------------------------------
#-------------------------------------------------------------
# Start of MAIN
#-------------------------------------------------------------
clear
if [[ `id |grep -c 'uid=0('` != 1 ]]; then
echo "${B1}ERROR!${EB}\n"
echo "\tThis script must be run as root user and should
also be executed on the"
echo "\tremote host. Additionally, you should have already
defined your"
echo "\t'Remote Mirrors', 'Volume Copies' and any
'Volumes' that you will"
echo "\tutilize with the erm.ksh script."
echo "\n\nPress Enter to Exit NOW! \c"
read BLANK
exit 1
else
echo "This script will prompt for all the necessary
variables that will be needed"
echo "for the erm.ksh shell script to operate successfully.
This script"
echo "should be executed on the ${B3}REMOTE${EB} host
system ${B3}AFTER${EB} the arrays have been"
echo "configured for the specific type of mirroring that
will be used in this"
echo "environment."
echo "\nIn other words, all mirrors should already be
defined on the arrays"