广州老实人

导航

oracle创建jobs定时任务报错:PLS-00306: wrong number or types of arguments in call to 'JOB'

原脚本:

begin
  sys.dbms_job.submit(job => job,
                      what => 'xxx;',
                      next_date => to_date('10-12-2019', 'dd-mm-yyyy'),
                      interval => 'TRUNC(SYSDATE + 1)');
  commit;
end;

报错:

 

修改后:

declare
  job number;
begin
  sys.dbms_job.submit(job => job,
                      what => 'xxx;',
                      next_date => to_date('10-12-2019', 'dd-mm-yyyy'),
                      interval => 'TRUNC(SYSDATE + 1)');
  commit;
end;

 

=====================

创作不易,谢谢支持!

 

posted on 2019-12-09 17:04  广州老实人  阅读(1438)  评论(0编辑  收藏  举报