background image
<< The remote server | db2_erm.conf file >>
<< The remote server | db2_erm.conf file >>

LSI Logic Storage Systems

Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-20
Remote Mirroring of an Oracle Database Using Data Replicator Software
# NOTE: This script is much more readable at 132 column display
versus 80
# column. Most tasks are broken into functions and are
called from
# the main body. Most commands are also echoed to $TRACE
along with
# stdout and error to facilitate easy identification of
problems.
# If you have comments or suggestions, please email me at
# rpaxton@lsi.com. Thanks!
#-------------------------------------------------------------
#**************************************************************
#
# #
# WARNING! WARNING! WARNING! WARNING!
#
# These scripts were developed by LSI Logic Storage Systems to
standardize #
# Remote Mirroring of a database to a remote location and should
be used #
# as a template to start from and not a turn key solution.
#
# USE AT YOUR OWN RISK!
#
# #
#**************************************************************
#
typeset -i VX=0 # Global volume counter variable
typeset -i STATUS # Global status variable
typeset -i VSTATUS # Global volume status variable
typeset -i MSTATUS # Global volume status variable
typeset CFG_FILE # Configuration file to use
typeset -i DEBUG # Used to set debug option
typeset -i VERIFY # Used to echo commands to the
screen only
typeset VOL_VG # Array used to track volume copy
volume groups
typeset VOL_LV # Array used to track volume copy
logical volumes
typeset VG # Array used to track AIX volume
groups used
typeset VG_LIST # Array used to track list of
hdisk(s) for each volume group
while getopts c:d INPUT
do
case $INPUT in
c) CFG_FILE=$OPTARG ;;
d) DEBUG=1 ;;