List All Undo Datafiles With Status And Size
show parameter undo
show parameter db_block_size
Undo Tablespace
SELECT tablespace_name
FROM dba_tablespaces
WHERE tablespace_name LIKE ‘%UNDO%’;
Total undo space
SELECT SUM(bytes) / 1024 / 1024 / 1024 GB
FROM dba_data_files
WHERE tablespace_name = ‘&Undo_TB_Name’;
To find MaxQueryLength from stats$undostat
SELECT Max(maxquerylen)
FROM stats$undostat;
SELECT Max(maxquerylen) FROM v$undostat;
SELECT begin_date,
u.maxquerylen
FROM (SELECT To_char(begin_time, ‘DD-MON-YYYY:HH24-MI-SS’) begin_date,
maxquerylen
FROM v$undostat
ORDER BY maxquerylen DESC) u
WHERE ROWNUM < 11;
SELECT begin_date,
u.maxquerylen
FROM (SELECT maxquerylen,
To_char(begin_time, ‘DD-MON-YYYY:HH24-MI-SS’) begin_date
FROM v$undostat
ORDER BY maxquerylen DESC) u
WHERE ROWNUM < 26
ORDER BY begin_date ASC,
maxquerylen DESC;
SELECT begin_date,
u.maxquerylen
FROM (SELECT maxquerylen,
To_char(begin_time, ‘DD-MON-YYYY:HH24-MI-SS’) begin_date
FROM v$undostat
ORDER BY maxquerylen DESC) u
WHERE ROWNUM < 26
ORDER BY maxquerylen DESC;
SELECT SUM(u.maxquerylen) / 25 AvgUndoRetTime
FROM (SELECT maxquerylen
FROM v$undostat
ORDER BY maxquerylen DESC) u
WHERE ROWNUM < 26;
SELECT SUM(u.maxquerylen)
FROM (SELECT maxquerylen
FROM v$undostat
ORDER BY maxquerylen DESC) u
WHERE ROWNUM < 26;
DBA_UNDO_EXTENTS
set linesize 152
col tablespace_name FOR a20
col status FOR a10
SELECT tablespace_name,
status,
Count(extent_id) “Extent Count”,
SUM(blocks) “Total Blocks”,
SUM(bytes) / ( 1024 * 1024 * 1024 ) spaceInGB
FROM dba_undo_extents
GROUP BY tablespace_name,
status
ORDER BY tablespace_name;
Mapping Undo Segments to usernames
SELECT s.sid,
s.serial#,
username,
s.machine,
t.used_ublk,
t.used_urec,
(rs.rssize) / 1024 / 1024 MB,
rn.name
FROM v$transaction t,
v$session s,
v$rollstat rs,
v$rollname rn
WHERE t.addr = s.taddr
AND rs.usn = rn.usn
AND rs.usn = t.xidusn
AND rs.xacts > 0;
col tablespace_name FORM a20
col file_name FORM a60
set lines 120
SELECT tablespace_name,
file_name,
status,
bytes / 1024 / 1024
FROM dba_data_files
WHERE tablespace_name = (SELECT tablespace_name
FROM dba_tablespaces
WHERE CONTENTS = ‘UNDO’);
Read More Articles
To Check When a Table is Last Analysed
List All Datafile Of Undo Tablespace
Undo Space Used By All Transactions
Undo Tablespace Utilization By All Sessions
To Check For Active Transactions
Datewise Occurrence Of ORA-1555
To Check Space Related Statistics Of Undo Tablespace
To Show ACTIVE/EXPIRED/UNEXPIRED Extents of Undo Tablespace
To Check Retention Guarantee For Undo Tablespace
Toral Inactive Sessions More Than 1Hour
Inactive Programs With Disk Reads Prompt Inactive Sessions
Total Count Of Sessions Ordered By Action
Total Count Of Sessions Ordered By Module
Total Sessions Count Ordered By Program
Sessions Which Are In Inactive Status From More Than 1 HOUR
SQL Queries to Check Active or Inactive Sessions
Query To Find Database Redolog Temp And Control File Size
Query To Find Long Running SQL Statements
Query To Find Undo Tablespace Usage
Query To Check For Table Locks
Query To Find Active Sessions In Database
Query To Check Users Sessions CPU and IO Consumption
Query To Check Open Cursor By User
Query To Check Top 10 Database Load Queries
Query To Check List Of Locks In The Database
Query To Check Blocking Sessions Per User
Query To Check Size Of All Tablespaces
Query To Find The Details of The Accounting Flexfield Structure
Query To Find a Scheduled Job for a particular program
How to Find Scheduled Concurrent Program
How to Find The Request Group Associated with a Program
Query To Verify Workflow IMAP Setting
Query To Find Complete Database Size
Query To Find Find EBS Profile Options For All Values
Query To Find Number Of Users Connected To EBS
Query To Find Who Is Connected When to Which Responsibilities
Query For Workflow Mailer Configurations
Query To Find All Responsibilities Assigned To a User
Query To Find All Users Assigned To Given Responsibility
Query To Find All Reports Registered Within Given Application
Query To Find Responsibility Name from a Concurrent Program
Query Count the number of reports registered In Each Module
Query To Find Scheduled Concurrent Request
Query To Find All Reports Status With User Name
Query To Count Pending Request
Query To find Concurrent Program Name, Phase Code And Status Code for a given Request ID
Query To Find a Concurrent Program Enabled with Trace
Query To Find Request Submitted By User
Query To Find Pending Request in Oracle Apps dba
Query To Find the Reports Finished With Error Code In Oracle Apps DBA