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

Home -> Community -> Usenet -> c.d.o.misc -> Re: moving tables from one tablespace to another

Re: moving tables from one tablespace to another

From: osy45 <member18536_at_dbforums.com>
Date: Wed, 19 Mar 2003 06:15:52 +0000
Message-ID: <2659020.1048054552@dbforums.com>

alter table <owner>.<tablename> move tablespace <tablespace_name>;

but it works only if no lob objects are columns in the table to be moved

the other way then is to drop all constraints for the specific table drop all indexes

rename the table to tmptable
create the table in the newly tablespace insert into table as select from tmptable recreate the constraints
recreate the indexes

or

exp the table
apply the users default tablespace as tomove tablespace alter the frommove tablespace offline
imp table

--
Posted via http://dbforums.com
Received on Wed Mar 19 2003 - 00:15:52 CST

Original text of this message

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