解决方案 »

  1.   

    shell执行delete
    sqlplus username/password@database << eof
    whenever sqlerror exit failure rollback;delete from ci_message_table 
    where program_name ='GENBISWF' 
    and TRUNC(date_time) = TO_DATE(sysdate,'dd-mon-yy');
    commit;eofRETURN_CODE="$?"
    if [ $RETURN_CODE != 0 ]
    then
    echo " abnormal termination for program gen_bis_weekly_data"
      echo " return code is " $RETURN_CODE
      echo "\n
     ***************************************
     abnormal termination for job $JOBNAME
     ***************************************\n"
      exit 1
    fi
      

  2.   

    shell执行delete
    sqlplus username/password@database << eof
    whenever sqlerror exit failure rollback;delete from ci_message_table 
    where program_name ='GENBISWF' 
    and TRUNC(date_time) = TO_DATE(sysdate,'dd-mon-yy');
    commit;eofRETURN_CODE="$?"
    if [ $RETURN_CODE != 0 ]
    then
    echo " abnormal termination for program gen_bis_weekly_data"
      echo " return code is " $RETURN_CODE
      echo "\n
     ***************************************
     abnormal termination for job $JOBNAME
     ***************************************\n"
      exit 1
    fi
    shell执行delete
    sqlplus username/password@database << eof
    whenever sqlerror exit failure rollback;delete from ci_message_table 
    where program_name ='GENBISWF' 
    and TRUNC(date_time) = TO_DATE(sysdate,'dd-mon-yy');
    commit;eofRETURN_CODE="$?"
    if [ $RETURN_CODE != 0 ]
    then
    echo " abnormal termination for program gen_bis_weekly_data"
      echo " return code is " $RETURN_CODE
      echo "\n
     ***************************************
     abnormal termination for job $JOBNAME
     ***************************************\n"
      exit 1
    fi
    非常感谢!