Transferring tablespace to another database
I want to transfer one tablespace from one database to another database by using the command for export:
$exp userid=system/manager file='d:oracleora90admindb7dump-filetest.dmp' tablespace=users;
and for imp:
$imp userid=system/manager file='d:oracleora90admindb7dump-filetest.dmp' tablespace=users;
The target database does not have a tablespace named users. My question is, in this situation do I have to create one tablespace with the name users in the target database with its associated users to import the tablespace's data from the dump file? Thanks.
When you use the TABLESPACE parameter for the export utility, this just tells exp to export those objects that reside in the specified tablespace. The export dump does not contain any information on how to create that tablespace on import. So before you import, you must precreate the tablespace in your destination database. If you do not create this tablespace, then the objects will go into the owner's default tablespace in that database.
This was first published in June 2006