Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Move table to another tablespace
in your 3rd option, you must create all constraints(except notnull) for the new table, if any. + ur checklists.
Nirmal.
-----Original Message-----
From: Hallas John [SMTP:John.Hallas_at_btcellnet.net] Sent: Thursday, October 25, 2001 2:35 PM To: Multiple recipients of list ORACLE-LSubject: RE: Move table to another tablespace
Various options available
) If using 8.1.7 then ALTER TABLE X MOVE TABLESPACE NEW should do it. Remember to rebuild any indexes afterwards
2)Export table rows =y grants=y indexes=y etc then drop the table. Create table in new tablespace (get syntax from imp file=x.dmp full=y indexfile=newtab.ind). Then run an import with the ignore existing objects set to Y.
3)create temp table in new tablespace by using create table new as select * from old;. Drop old table (or rename it) then rename the new table to the same name as the original one. Will need to check grants synonynms and recreate indexes.
John
-----Original Message-----
From: Roland.Skoldblom_at_ica.se [ <mailto:Roland.Skoldblom_at_ica.se>]
Sent: 25 October 01 12:00
To: Multiple recipients of list ORACLE-L
Subject: Move table to another tablespace
Hallo,
Can you please tell how to move one table from one tablespace to another? I have data inthistable.
Thanks in advance
Roland Sköldblom
--
Please see the official ORACLE-L FAQ: <http://www.orafaq.com>
--
Author:
INET: Roland.Skoldblom_at_ica.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message