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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GENERATE DDL to a FILE 1

Status
Not open for further replies.

jestrada101

Technical User
Joined
Mar 28, 2003
Messages
332
what would be the best method to do this? I want to generate DDL to a file on the OS.
 
1) Use combination of DBMS_METADATA and UTL_FILE utilities.
2) Export with options rows=n owner=MySchema, download DDL Wizard and generate the code!



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Thanks! I think UTL_FILE is what I was looking for. I'll play around with that!

JE
 
UTL_FILE requires that I set a parameter in init.ora, is there a way I can use CREATE DIRECTORY without having to change anything in init.ora?
 
Yes, depending on Oracle version (8.1.7 and above)


----------------------------------------------------------------------------
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