Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pipe a schema from one database to another?

Status
Not open for further replies.

huchen

Programmer
Jan 24, 2006
68
0
0
US
Hello,

I need to import all objects in "scott" schema from DB1 to DB2, I need all objects, including table definiations, constraints, stored functions/packages and etc, everything in this schema except data. I do not need any data from any table, not a single row.

Can I do this in sqlplus?
If it can not be done in sqlplus, Please tell me few options if there are some.

Thank you very much in advance.
 

Use exp(ort)/imp(ort) with rows=no (data=no) option(s).

-- Or -- use similar option with datapump (expdb).

-- Or -- use SQL Developer to export schema DDL.
[3eyes]



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top