col sid format 9999
col opname format a21
col target_desc format a32
col perwork format a12
col message format a78
col event format a32
set lines 121
select l.sid,
OPNAME,
sofar,
TOTALWORK,
trunc(sofar / totalwork * 100, 2) || '%' as perwork,
elapsed_seconds,
w.event,
p1,
p2,
p3,
message
from v$session_longops l,
v$session_wait w
where l.sid = w.sid
and sofar != totalwork;
看去索引重建进度的脚本
最新推荐文章于 2022-11-22 17:07:48 发布