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 -> Re: Tablespace export ???? how ???

Re: Tablespace export ???? how ???

From: <xmark.powell_at_eds.com.x>
Date: 26 Mar 2001 14:53:10 GMT
Message-ID: <99nl4m$fvp$1@news.netmar.com>

In article <3abd8267.0_at_news.tm.net.my>, Venkat Iyer <venkat_p_iyer_at_yahoo.com> writes:
>hi there guys and gals...
>
>i'm trying ot reclaim some space from my datafiles....i need to drop a
>tablespace and recreate it with the rite storage and sizing
>parameters.....how do i just export the contents of a tablespace, drop it
>and recreate it ?????
>
>thanx in advance
>venkat
>

There is not exp command to export only one tablespace for re-importation into the same database, but you can use the tables= parameter to export the tables in a tablespace. You can find the tables/indexes in a tablespace by searching on the tablespace_name column of sys.dba_tables and sys.dba_indexes or using dba_segments. I suggest you use compress=n on the export to prevent Oracle from over-allocating space to the objects on import.

Note, if the tablespace is all indexes you may want to generate the create index SQL, drop the tablespace including contents, re-create it, and just run the index DDL.

Received on Mon Mar 26 2001 - 08:53:10 CST

Original text of this message

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