oracle create jobs scheduled task given: PLS-00306: wrong number or types of arguments in call to 'JOB'

Hara Screenplay:

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;

Error:

 

Modified:

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;

Guess you like

Origin www.cnblogs.com/TonyChung/p/12012113.html
Recommended