question

OraLearner avatar image
OraLearner asked

How to import tables to different tablespace ?

Can anybody explain to me how to import tables to a different tablespace ? Thank you.

oracletabletablespace
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

OracleApprender avatar image
OracleApprender answered

Oracle offers no parameter to specify a different tablespace to import data into. Objects will be re-created in the tablespace they were originally exported from. One can alter this behaviour by following one of these procedures:

Pre-create the table(s) in the correct tablespace: . Import the dump file using the INDEXFILE= option . Edit the indexfile. Remove remarks and specify the correct tablespaces. . Run this indexfile against your database, this will create the required tables in the appropriate tablespaces . Import the table(s) with the IGNORE=Y option.

Change the default tablespace for the user: . Revoke the "UNLIMITED TABLESPACE" privilege from the user . Revoke the user's quota from the tablespace from where the object was exported. This forces the import utility to create tables in the user's default tablespace. . Make the tablespace to which you want to import the default tablespace for the user . Import the table

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

OraLearner avatar image OraLearner commented ·
Thanks for your answer.
0 Likes 0 ·
HillbillyToad avatar image
HillbillyToad answered

ALTER TABLE tablename MOVE TABLESPACE *tablespace_name*

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

OraLearner avatar image OraLearner commented ·
Thanks for your answer.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.