Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Tablespace export ???? how ???
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.
![]() |
![]() |