I export db from user which is related on tablespace USER on local PC and import to user which is related to tablespace DATATAB on server….my question is: will data be stored in DATATAB tablespace or USER tablespace on server? I was using standard imp command. I am afraid if it goes to USER tablespace I will not have enough space aafter time pass and db become big….please answer….just to mention that user on server on creation is related to DATATAB tablespace and version of oracle is 11gr2…..thank you
Oracle tablespaces
oracle-11g-r2tablespaces
Related Question
- How to retrieve disk spaces by removing tables from tablespaces in Oracle 10g
- Oracle 11gR2 IMP Won’t Import Table in Dump File From 10g
- Oracle – How to Alter Multiple Tablespaces at Once
- Oracle – Removing Editioning from a User in Oracle 11g R2
- Oracle 12c export and import schema with different data tablespace and index tablespace
- Oracle12c: Objects attempting to import to original tablespace (despite wanting to remap them)
- Oracle 11g – Decreasing Big Table Size
Best Answer
Why using original Export and Import utilities (
imp
andexp
respectively), which are deprecated, while since 10g Oracle provides a new, more efficient facility called Data Pump?You can use Data Pump Import with
REMAP_TABLESPACE
parameter to specify the new tablespace name for the objects being imported:One of the things that would require you to use original Import is that you already have a file generated by original Export, and don't have access to the source database for using Data Pump Export, because as per Database Upgrade Guide:
In which case you can (as seems to me) follow the Reorganizing Tablespaces section in Database Utilities, which describes the procedure:
Basically you need to set the user's default tablespace during import to one which should contain the imported objects.
Where
newtbs
is the name of the new tablespace.See also:
REMAP_*
parameters