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

Getting DDL Using Data Pump 1

Status
Not open for further replies.

tekdudedude

Technical User
Sep 29, 2007
79
Hello,

Though at this point there are various ways to get DDL for schema objects, is there a way to get DDL (for tables,indexes,procedures,triggers etc.) using the Data Pump?

Yep, in the the legacy imp\exp you can use IndexFile= and there also is dbms_metadata.get_ddl().

I was wondering if the Data Pump could do it and how.

Thanks,

TD

 
TekDudeDude,

Check out the "SQLFILE=<file name>", parameter of "impdp", which should (as Import Data Pump Help suggests) give you:
imp Data Pump Help said:
...all the SQL DDL to a specified file.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Santa,

I really like how Data Pump does this - very useful. Thanks for posting!

TD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top