28、查看用户的回滚段的信息
SELECT s.Username, Rn.NAME
FROM V$session s, V$transaction t, V$rollstat r, V$rollname Rn
WHERE s.Saddr = t.Ses_Addr
AND t.Xidusn = r.Usn
AND r.Usn = Rn.Usn
29、查看内存中存的使用
SELECT Decode(Greatest(CLASS, 10),
10,
Decode(CLASS, 1, 'Data', 2, 'Sort', 4, 'Header', To_Char(CLASS)), 'Rollback') "Class",
SUM(Decode(Bitand(Flag, 1), 1, 0, 1)) "Not Dirty",
SUM(Decode(Bitand(Flag, 1), 1, 1, 0)) "Dirty",
SUM(Dirty_Queue) "On Dirty", COUNT(*) "Total"
FROM X$bh
GROUP BY Decode(Greatest(CLASS, 10),
10,
Decode(CLASS, 1, 'Data', 2, 'Sort', 4, 'Header', To_Char(CLASS)), 'Rollback'); |