job 每次执行消耗的时间?

aim_less 2009-11-10 10:22:18
请教如何查看job 每次执行消耗的时间?
...全文
117 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
duqiangcise 2009-11-10
  • 打赏
  • 举报
回复
dbms_utilty.get_time修改成dbms_utility.get_time
duqiangcise 2009-11-10
  • 打赏
  • 举报
回复
在job调用的过程中写入:
declare
v_start_time number;
v_end_time number;

begin
select dbms_utilty.get_time into v_start_time from dual;
--你过程中的业务逻辑处理
select dbms_utilty.get_time into v_end_time from dual;

dbms_output.put_line((v_end_time-v_start_time)/100);--单位是秒

end;

向上面这样就可以求出你job调用的过程所执行消耗的时间。
inthirties 2009-11-10
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 duqiangcise 的回复:]
在job调用的过程中写入:
declare
v_start_time number;
v_end_time number;

begin
select dbms_utilty.get_time  into v_start_time from dual;
--你过程中的业务逻辑处理
select dbms_utilty.get_time  into v_end_time from dual;

dbms_output.put_line((v_end_time-v_start_time)/100);--单位是秒

end;

向上面这样就可以求出你job调用的过程所执行消耗的时间。
[/Quote]

最好用自己的表来记录数据, 用打印的方式后台看不到。

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧