set linesize 333
col USERNAME format a15
col PROGRAM format a46
col NAME format a15
col MACHINE format a30
col USED_UBLK format a20
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select sysdate from dual;
select * from (
SELECT s.sid, s.username, s.PROGRAM, s.MACHINE, u.name, t.used_ublk * 8192 / 1024 / 1024 || 'M' as USED_UBLK
FROM v$transaction t, v$rollstat r, v$rollname u, v$session s
WHERE s.taddr = t.addr
AND t.xidusn = r.usn
AND r.usn = u.usn
ORDER BY 6 desc
)
where rownum < 11;
col USERNAME format a15
col PROGRAM format a46
col NAME format a15
col MACHINE format a30
col USED_UBLK format a20
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select sysdate from dual;
select * from (
SELECT s.sid, s.username, s.PROGRAM, s.MACHINE, u.name, t.used_ublk * 8192 / 1024 / 1024 || 'M' as USED_UBLK
FROM v$transaction t, v$rollstat r, v$rollname u, v$session s
WHERE s.taddr = t.addr
AND t.xidusn = r.usn
AND r.usn = u.usn
ORDER BY 6 desc
)
where rownum < 11;