Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dropping UNDO Tablespace

PVOWUSUSep 5 2012 — edited Sep 9 2012
Hello Gurus,

Undo tablespace is growing excessively and we want to drop it and create a new one. Below are the outlined steps to achieve that. Kindly review and advise us accordingly.


----BACKUP the UNDOTBS1 tablespace

rman>BACKUP tablespace UNDOTBS1

---create the tablesspace UNDOTBS2

sql>create the tablesspace UNDOTBS2 DATAFILE '/UBSUNDO/ghadb_undotbs_029.dbf' SIZE 2G;


---set the tablespace UNDOTBS2 to the default

sql>alter system set undo_tablespace=UNDOTBS2;

---shutdown cleanly,startup and shutdwon cleanly again. Then startup

sql> shutdown immediate;

sql> startup;

sql>shutdown immediate;

sql> startup;

--- show parameter to confirm that the UNDOTBS2 is being used by the database.
==========
sql>show parameter undo;


---drop tablespace UNDOTBS1 including contents and datafiles;
note
----
----if UNDOTBS1 fails to drop

sql>ALTER TABLESPACE UNDOTBS1 OFFLINE NORMAL;

----then drop it

sql>drop tablespace UNDOTBS1 including contents and datafiles;


Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2012
Added on Sep 5 2012
7 comments
5,765 views