当前位置: 代码迷 >> SQL >> 查询sql施行进度
  详细解决方案

查询sql施行进度

热度:30   发布时间:2016-05-05 14:00:01.0
查询sql执行进度
  SELECT SE.SID,  OPNAME,  TRUNC(SOFAR / TOTALWORK * 100, 2) || '%' AS PCT_WORK,  ELAPSED_SECONDS ELAPSED,  ROUND(ELAPSED_SECONDS * (TOTALWORK - SOFAR) / SOFAR) REMAIN_TIME,  SQL_TEXT  FROM V$SESSION_LONGOPS SL, V$SQLAREA SA, V$SESSION SE  WHERE SL.SQL_HASH_VALUE = SA.HASH_VALUE  AND SL.SID = SE.SID  AND SOFAR != TOTALWORK  ORDER BY START_TIME;

?

  相关解决方案