By
Published: 08 Mar 2006
I want to copy all the objects (tables, stored procedures, functions, etc.) of one user to another user. Can you please tell me how to achieve this in Oracle 9i?
One of the easiest ways to accomplish this task is to use Oracle's export and import utilities. Export just that schema owner's objects similar to the following (I'll export the SCOTT schema objects):
exp userid=system file=scott.dmp owner=scott
Now, you'll want to import these objects into another schema (I'll use the HR user in my example):
imp userid=system file=scott.dmp fromuser=scott touser=hr
The FROMUSER and TOUSER parameters will force the import process to import into the HR schema.
Dig Deeper on Oracle database backup and recovery
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