--创建DBlink后,同步目标库中的job脚本
DECLARE
V_JOB NUMBER;
BEGIN
FOR C_R IN (SELECT * FROM USER_JOBS@DIPOA163) LOOP
DBMS_JOB.SUBMIT(JOB => V_JOB,
WHAT => C_R.WHAT,
NEXT_DATE => C_R.NEXT_DATE,
INTERVAL => C_R.INTERVAL);
COMMIT;
DBMS_OUTPUT.PUT_LINE(V_JOB);
END LOOP;
END;
本文出自 “tenjhon” 博客,转载请与作者联系!