Use below query to determine which users/sessions are using and how much UNDO is being used
Download(undotsusage.sql)
Download(undotsusage.sql)
REM +======================================================================+ REM REM File Name: undotsusage.sql REM REM Description: REM Query To check transaction/query exhausting the UNDO tablespace REM REM Notes: REM Usage: sqlplus "/ as sysdba" @undotsusage.sql REM REM +======================================================================+ Clear columns SET pages 100 SET Lines 280 select a.sid, a.serial#, a.username, b.used_urec, b.used_ublk from v$session a, v$transaction b where a.saddr = b.ses_addr order by b.used_ublk desc;
With:
USED_UBLK = Number of undo blocks used
USED_UREC = Number of undo records used
No comments:
Post a Comment