Q

Transferring tablespace to another database

I want to transfer one tablespace from one database to another database by using the command for export and import. The target database does not have a tablespace named users. 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?

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

Dig deeper on Oracle database backup and recovery

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close