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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Move table to another tablespace

RE: Move table to another tablespace

From: Nirmal Kumar Muthu Kumaran <NIRMALK_at_qtel.com.qa>
Date: Thu, 25 Oct 2001 06:03:20 -0700
Message-ID: <F001.003B40FC.20011025050023@fatcity.com>

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-L
Subject:        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 Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: 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).

This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium.
Received on Thu Oct 25 2001 - 08:03:20 CDT

Original text of this message

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