摘要:
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job = X
,what = 'declare n_errid number; c_errmsg varchar2(4000);begin pack_sy_dataclear.p_dbdataclear(n_errid , c_errmsg );end;'
,next_date = to_date('26-04-2006 01:00:00','dd/mm/yyyy hh24:mi:ss')
,interval = 'TRUNC(SYSDATE+1)'
,no_parse = TRUE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
END;
/
commit;
这个脚本 是用来创建一个Job 阅读全文