0% found this document useful (0 votes)
65 views

How To Shrink Undo

To shrink the undo tablespace: 1. Create a new undo tablespace with a smaller datafile size and make it the default. 2. Check that there are no active undo segments in the original tablespace. 3. Drop the original undo tablespace to free up disk space.

Uploaded by

Printesh Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

How To Shrink Undo

To shrink the undo tablespace: 1. Create a new undo tablespace with a smaller datafile size and make it the default. 2. Check that there are no active undo segments in the original tablespace. 3. Drop the original undo tablespace to free up disk space.

Uploaded by

Printesh Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

How To Shrink Undo Tablespace

Posted by Narashim Reddy .R on August 15, 2009

3 Votes

If you want to shrink the Undo Tablespace ,you will have to shrink the
Datafile to free disk space and this is the best and fast solution.
1-you will need to create another Tablespace with a smaller Datafile size
SQL> create undo tablespace UNDO_TBS1
datafile d:\oracle\oradata\orcl\undorbs1.dbf size 100m;
2-Let the new tablespace to be the default Undo Tablespace
SQL> alter system set undo_tablespace=UNDO_TBS1;
3-Check that theres no active Undo Segments in your Database using this
query
SQL> SELECT a.name,b.status
FROM v$rollname a, v$rollstat b
WHERE a.name IN ( SELECT segment_name
FROM dba_segments
WHERE tablespace_name = UNDOTBS0)
AND a.usn = b.usn;
if the query returns no rows then theres no active Undo segments
4- Drop the old Tablespace
SQL> drop tablespace UNDO_TBS0 including contents.

You might also like