${ORACLE_HOME}/bin/sqlplus -s $USER_DW_ADMIN/$PWD_DW_ADMIN << EOF
set colsep ''
set pagesize 0
set heading off
set feedback off
set echo off
set arraysize 5000
set termout off
SET WRAP OFF
spool $DW_LST/temp11
while read plant TS_date junk
do
[ "$plant" = "Plant" ] && continue
@${DW_CTL}/Temp_check.sql
done < $DW_LST/temp_check.dat > $DW_LST/temp12
spool off
EOF
Above loop is not working, It is generating error for plant not found. Can you please help?
Thanks,
Dave
set colsep ''
set pagesize 0
set heading off
set feedback off
set echo off
set arraysize 5000
set termout off
SET WRAP OFF
spool $DW_LST/temp11
while read plant TS_date junk
do
[ "$plant" = "Plant" ] && continue
@${DW_CTL}/Temp_check.sql
done < $DW_LST/temp_check.dat > $DW_LST/temp12
spool off
EOF
Above loop is not working, It is generating error for plant not found. Can you please help?
Thanks,
Dave