Select a.Sid,
a.Target "扫描表",
a.Sofar "已扫描块",
a.Totalwork "块总数",
Round(a.Sofar / a.Totalwork, 5) * 100 || ‘%‘ "扫描完成比例(%)",
a.Start_Time "开始时间",
Round(a.Time_Remaining / 60, 1) "剩余时间(分)",
Round(a.Elapsed_Seconds / 60, 1) "已用时间(分)"
From V$session_Longops a, V$session b
Where a.Sofar <> a.Totalwork
And a.Sid = b.Sid
And b.Status = ‘ACTIVE‘
And a.sid In (‘88‘);
select /*+ rule */s.sid,
r.name rr,
nvl(s.username,‘no transaction‘) us,
s.osuser os,
s.terminal te,
t.used_urec rec,
t.used_ublk blk
from v$lock l, v$session s, v$rollname r,v$transaction t
where l.sid = s.sid(+) and
trunc(l.id1/65536) = r.usn and
l.type = ‘TX‘ and
t.ses_addr = s.saddr and
l.lmode = 6
时间: 2024-10-23 15:24:04