#/bin/ksh -x
for myread in `cat /export/home/oracle/scripts/check_recovery.par`
do
TARGET_SID=`echo $myread | awk -F”,” ‘{print $1}’`
SOURCE_SSH=`echo $myread | awk -F”,” ‘{print $2}’`
SOURCE_HOST=`echo $myread | awk -F”,” ‘{print $3}’`
SOURCE_ENVFILE=`echo $myread | awk -F”,” ‘{print $4}’`
SOURCE_ORACLE_HOME=`echo $myread | awk -F”,” ‘{print $5}’`
TARGET_SSH=`echo $myread | awk -F”,” ‘{print $6}’`
TARGET_HOST=`echo $myread | awk -F”,” ‘{print $7}’`
TARGET_ENVFILE=`echo $myread | awk -F”,” ‘{print $8}’`
TARGET_ORACLE_HOME=`echo $myread | awk -F”,” ‘{print $9}’`
LOG_COMFORT=`echo $myread | awk -F”,” ‘{print $10}’`
echo “TARGET_SID = $TARGET_SID”
echo “SOURCE_SSH = $SOURCE_SSH”
echo “SOURCE_HOST = $SOURCE_HOST”
echo “SOURCE_ENVFILE = $SOURCE_ENVFILE”
echo “SOURCE_ORACLE_HOME = $SOURCE_ORACLE_HOME”
echo “TARGET_SSH = $TARGET_SSH”
echo “TARGET_HOST = $TARGET_HOST”
echo “TARGET_ENVFILE = $TARGET_ENVFILE”
echo “TARGET_ORACLE_HOME = $TARGET_ORACLE_HOME”
echo “LOG_COMFORT = $LOG_COMFORT”
done
echo RUNNING: $RUNNING
++++++ Following is the parameter file format++++
UOC,/usr/local/bin/ssh,nyuocdbprod01s,/export/home/oracle/oraprocs/oracle_env_10g_UOC,/oracle/app/oracle/product/10.1,/usr/lo
cal/bin/ssh,uocdbprod21,/oracle/app/oracle/oraprocs/oracle_env_UOC,/oracle/app/oracle/product/10.1,19
800L,/usr/bin/ssh,sunlight1,/opt/app/oracle/envs/oracle_env,/oracle/app/oracle/product/9.2.0.8,/usr/bin/ssh,10.203.1.32,/opt/
app/oracle/envs/oracle_800L_9i_env,/oracle/app/oracle/product/9.2.0.8,0