ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 查找大开销的SQL脚本

查找大开销的SQL脚本

原创 Linux操作系统 作者:q418441117 时间:2013-04-17 14:12:49 0 删除 编辑
select l.sid ssid,substr(opname,1,15) opname,target,trunc((sofar/totalwork)*100) pct,
to_char(60*sofar*8192/(24*60*(last_update_time - start_time))/1024/1024/60, '9999.0') rate,
elapsed_seconds/60 es,time_remaining/60 tr,program,machine
from v$session_longops l,v$session s where time_remaining > 0 and l.sid=s.sid order by start_time;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26655292/viewspace-758673/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-09-11

  • 博文量
    203
  • 访问量
    471923