Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Moving a table
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 atable, 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.
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