Monitoriza la actividad en los distintos segmentos de rollback.
SET LINESIZE 1000
SELECT
substr(r.name,1,15) "RBS",
substr(p.pid,1,10) "BLOQUEANTE",
substr(p.spid,1,10) system_pid,
substr(s.sid,1,10) "BLOQUEADO",
' => ' "=>",
substr(s.osuser,1,10) "OSUSER",
nvl(p.username,'NO TRANSACTION') "TRANSACCION",
E.EXTENTS
FROM
V$LOCK L,
V$PROCESS P,
V$ROLLNAME R,
V$SESSION S,
DBA_SEGMENTS E
WHERE
E.SEGMENT_TYPE='ROLLBACK' AND
R.NAME=E.SEGMENT_NAME AND
s.paddr(+) = p.addr and
l.sid = p.pid(+) and
trunc(l.id1(+)/65536)=r.usn and
l.type(+) = 'TX' and
l.lmode(+) = 6
ORDER BY
r.name;
No hay comentarios:
Publicar un comentario