Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Question: Safest way to 'recreate' a tablespace

Question: Safest way to 'recreate' a tablespace

From: BD <bobby_dread_at_hotmail.com>
Date: 26 Oct 2005 10:25:12 -0700
Message-ID: <1130347512.148010.95400@g44g2000cwa.googlegroups.com>


Hi, all.

I have a situation where a file was added to a tablepace incorrectly. (9.2.0.6 on AIX 5.2)

For the purposes of tidiness, I want to remove it. I gather that this will generally mean either shrinking the unwanted file down to a tiny size so it will have no effect on the space usage, or re-creating the tablespace

I have read options in the group about moving segments, and also about exporting and importing.

Assuming I want to keep the same tablespace name, I'm kind of thinking that the best process would be:

-Export tablespace
-Drop tablespace
-Delete unwanted files
-Create tablespace with the correct file allocation
-Import tablespace

Is this still the best/safest route to take?

Comments welcome.

Thanks!

BD Received on Wed Oct 26 2005 - 12:25:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US