- 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
Related Q&A from Brian Peasland
Oracle expert Brian Peasland answers one reader's question about common pitfalls when connecting Oracle to outside programs. Continue Reading
One reader asks expert Brian Peasland a question about datafile sizes with the Oracle RMAN duplicate 10g command. Continue Reading
Managing parent table-child table relations in Oracle SQL environments is key to efficient programming. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.