#----------data_output-------#
login_passwd=sccn/sccn
TMPFILE=/home/oracle/sh/log/syn_wftable.log
date '+%D %T%n'
sqlplus $login_passwd as sysdba <<EOF
conn sccn/sccn
set pagesize 0;
set linesize 1000;
set trims off;
set echo off;
set serveroutput on
execute SYNRO_TBL_WFINFO(sysdate-3,sysdate);
spool ${TMPFILE}
execute dbms_output.put_line('after execute SYNRO_TBL_WFINFO now time:'||to_char(sysdate,'YYYY-MM-DD HH24:MI:SS'));
spool off