同步模式设置成异步,用job完成每次的同步,我想查一下每次同步job从开始到结束所用的时间。 如果该同步任务的job_number是2,我用下面的sql手动开始同步并测试时间,这个时间是同步所消耗的时间么?还是,job在后台运行呢,就已经返回了。有没有别的方法能准确地察看同步所用的时间呢? set serveroutput on; declare time1 date; begin select current_timestamp into time1 from dual; dbms_job.run(2); DBMS_OUTPUT.PUT_LINE(current_timestamp-time1); end;
如果该同步任务的job_number是2,我用下面的sql手动开始同步并测试时间,这个时间是同步所消耗的时间么?还是,job在后台运行呢,就已经返回了。有没有别的方法能准确地察看同步所用的时间呢?
set serveroutput on;
declare time1 date;
begin
select current_timestamp into time1 from dual;
dbms_job.run(2);
DBMS_OUTPUT.PUT_LINE(current_timestamp-time1);
end;