尝试运行此SQL脚本,但它一直给我错误。
DECLARE
JobNo user_jobs.job%TYPE;
v_date date := to_date('20130308 050000','yyyymmdd hh24miss');
BEGIN
dbms_job.submit(
JobNo, --Job ID
'begin runFlow; end;', -- Procedure to execute
v_date, -- start running at
'sysdate + 1' -- interval of jobs
);
COMMIT;
END;
到处搜索,找不到答案。
答案 0 :(得分:0)
如果用NULL替换runFlow调用,那么你的块工作正常:
DECLARE
JobNo user_jobs.job%TYPE;
v_date date := to_date('20130308 050000','yyyymmdd hh24miss');
BEGIN
dbms_job.submit(
JobNo, --Job ID
'begin null; end;', -- Procedure to execute
v_date, -- start running at
'sysdate + 1' -- interval of jobs
);
COMMIT;
END;
SQL> /
PL/SQL procedure successfully completed.
所以,如果我是你,我会看看runFlow程序。