Database & SQL/Oracle

오래 걸리는 작업(SQL) 확인 방법

YuMa726 2021. 7. 9. 10:37

select * from
(select sid, serial#, opname, to_char(start_time,'yyyymmdd hh24:mi:ss') st,
  TRUNC((sofar/totalwork) * 100) as percent_complete,START_TIME,TIME_REMAINING
from v$session_longops
order by start_time desc)
where rownum<=10
;