#/bin/sh
process_=`sqlplus -s dcm/dcm@215.8.7.57:11521/dcsdb<<EOF
set linesize 300;
set heading off feedback off pagesize Overify off echo numwidth 40
insert into t1(id,name)
select seq_t1.nextval,name from t2;
commit;
exit;
EOF`
echo $process_
process_=`sqlplus -s dcm/dcm@215.8.7.57:11521/dcsdb<<EOF
set linesize 300;
set heading off feedback off pagesize Overify off echo numwidth 40
insert into t1(id,name)
select seq_t1.nextval,name from t2;
commit;
exit;
EOF`
echo $process_
value=`sqlplus -s dcm/dcm@215.8.7.57:11521/dcsdb<<EOF
select count(1) from t1 where trunc(t1.check_time)=trunc(sysdate)
exit;
EOF`
echo "result is:"
echo $value
select count(1) from t1 where trunc(t1.check_time)=trunc(sysdate)
exit;
EOF`
echo "result is:"
echo $value