Importing table structure only to new schema
How do I import the table structure only to another schema with a different tablespace for data, as well as for constraints?
- Export the table's definition with the constriants and indexes:
exp userid=system file=my_dump.dmp tables=EMP rows=n constraints=y indexes=y
- Use the import utility to create a file that can be used to create the table and indexes:
imp userid=system file=my_dump.dmp full=y indexfile=create.sql
- Modify the create.sql script created in step two with any text editor. You can change the tablespace or other storage information at this time.
- Run the modified script in the destination database.
Dig Deeper on Oracle database backup and recovery
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our Oracle Database / Applications experts
View all Oracle Database / Applications questions and answers
Start the conversation
0 comments