Skip to content

Instantly share code, notes, and snippets.

@jc1518
Created May 8, 2019 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jc1518/1ee2390b3d67487e110962c5fc66bbf9 to your computer and use it in GitHub Desktop.
Save jc1518/1ee2390b3d67487e110962c5fc66bbf9 to your computer and use it in GitHub Desktop.
SELECT SUM(a.bytes) as UNDO_SIZE
FROM v$datafile a,
v$tablespace b,
dba_tablespaces c
WHERE c.contents = 'UNDO'
AND c.status = 'ONLINE'
AND b.name = c.tablespace_name
AND a.ts# = b.ts#;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment