oracle 查询语句执行的进度

V$SESSION_LONGOPS记录主要记录操作时间大于6秒读取的block数目大于一定量的操作

select  target,SOFAR  /  TOTALWORK *100 from V$session_longops order by SOFAR desc

target表示针对的目标表

SOFAR  /  TOTALWORK *100 就是完成的百分比

原文地址:https://www.cnblogs.com/liaomin416100569/p/9331349.html