Verificar numeros de blocos usados e linhas para uma instrução DML (INSERT, DELETE, UPDATE) de uma sessão
-- V$TRANSACTION.USED_UBLK - Mostra o número de blocos em rollback
-- V$TRANSACTION.USED_REC - Registros Processados
select s.username, s.sid, rn.name, rs.extents
,rs.status, t.used_ublk, t.used_urec
,do.object_name
from v$transaction t
,v$session s
,v$rollname rn
,v$rollstat rs
,v$locked_object lo
,dba_objects do
where t.addr = s.taddr
and t.xidusn = rn.usn
and rn.usn = rs.usn
and t.xidusn = lo.xidusn(+)
and do.object_id = lo.object_id
and s.sid = 524;
-- V$TRANSACTION.USED_REC - Registros Processados
select s.username, s.sid, rn.name, rs.extents
,rs.status, t.used_ublk, t.used_urec
,do.object_name
from v$transaction t
,v$session s
,v$rollname rn
,v$rollstat rs
,v$locked_object lo
,dba_objects do
where t.addr = s.taddr
and t.xidusn = rn.usn
and rn.usn = rs.usn
and t.xidusn = lo.xidusn(+)
and do.object_id = lo.object_id
and s.sid = 524;
Comentários
Postar um comentário