Purge Undo Tablespace Usage

[Solved] Purge Undo Tablespace Usage | Rust - Code Explorer | yomemimo.com
Question : purge undo tablespace usage

Answered by : vastemonde

-- UNDO tablespace current usage / available space
SELECT a.TABLESPACE_NAME, SIZEMB, USAGEMB, (SIZEMB - USAGEMB) AS FREEMB
FROM (SELECT round(sum(BYTES) / 1e6) AS SIZEMB, b.TABLESPACE_NAME FROM DBA_DATA_FILES a, DBA_TABLESPACES b WHERE a.TABLESPACE_NAME = b.TABLESPACE_NAME AND b.CONTENTS LIKE '%UNDO%' GROUP BY b.TABLESPACE_NAME) a, (SELECT c.TABLESPACE_NAME, sum(BYTES) / 1e6 AS USAGEMB FROM DBA_UNDO_EXTENTS c WHERE STATUS <> 'EXPIRED' GROUP BY c.TABLESPACE_NAME) b
WHERE a.TABLESPACE_NAME = b.TABLESPACE_NAME;

Source : https://smarttechways.com/2021/02/09/check-the-undo-tablespace-usage-in-oracle/ | Last Update : Mon, 09 Aug 21

Answers related to purge undo tablespace usage

Code Explorer Popular Question For Rust