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: Moving a table

Re: Moving a table

From: Jurij Modic <jurij.modic_at_mf.sigov.mail.si>
Date: 1998/03/31
Message-ID: <3521482e.7586739@www.sigov.si>#1/1

On Tue, 31 Mar 1998 21:23:29 +1000, "Zdenka Spoljaric" <ZdenkaSpoljaric_at_access.net.au> wrote:

>Ian wrote in message <01bd5c91$a9fd1230$4c675cc3_at_ilewis>...
>>We have an Oracle 7.3 database with 3 schema's.
>>
>>I would like to move a 2million record table to it's own tablespace (it is
>>currently shared with another table). How can I move the table to this new
>>tablespace?.
>>
>>Could I use the Table only import option - or will this store the table in
>>the original tablespace?
 

>Create a new tablespace and assign it as a default tablespace for a new
>user. Import the table in the user schema. Make this table available to
>existing users by creating a synonym.

You don't have to create a new user, synonym etc, to acomplish this. You can do it this way:

1. Export a table
2. Create new_tablespace
3. Make this tablespace the default tablespace for the owner of a
table, give him sufficient (or unlimited) quota on this new_tablespace and set his qouta on old_tablespace to 0. You can do all of this using ALTER USER command.
4. Import the table back, it will be created in the new_tablespace. 5. Eventualy alter the user again, seting his default tablespace and quotas back to their previous values.

Regards,


Jurij Modic                             Republic of Slovenia
jurij.modic_at_mf.sigov.mail.si		Ministry of Finance
============================================================
The above opinions are mine and do not represent any official standpoints of my employer Received on Tue Mar 31 1998 - 00:00:00 CST

Original text of this message

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