View info about session and undo segments:
SQL> select s.sid, s.username, s.osuser, s.logon_time, t.start_date, d.segment_name
2 from v$session s join v$transaction t
3 on s.saddr=t.ses_addr
4 join dba_rollback_segs
5 d on t.XIDUSN=d.SEGMENT_ID;
View undo info
SQL> select USN, EXTENTS, RSSIZE, XACTS from v$rollstat;
0 6 385024 0
11 4 2220032 0
12 4 2220032 1
13 5 319488 0
14 4 253952 0
15 5 319488 0
16 4 2220032 0
17 3 1171456 0
18 17 2088960 0
19 6 385024 0
20 6 385024 0
11 rows selected.
USN - segment number, EXTENTS - extents number, RSSIZE - size in bytes, XACT - number of active transactions
No comments:
Post a Comment