我有一个执行存储过程的DBMS_SCHEDULER作业,但是存储过程需要传递两个日期值,我想做sysdate但是当我尝试在oracle或sqlplus中执行此操作时,预定的作业什么也不做。< / p>
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'JOB_QUERY',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN RUNREPORT(''NAME'', ''VERSION'', SYSDATE, SYSDATE); COMMIT; END;',
start_date => SYSTIMESTAMP,
repeat_interval => 'FREQ=HOURLY;BYMINUTE=10', -- every Hour, 10 minutes in.
end_date => NULL,
enabled => TRUE,
comments => 'Daily Query Update');
END;
/
感谢您的帮助