Jeromy French
Jeromy French

Reputation: 12121

How can I get DDL for a given Oracle package's "public" procedures?

I have a large number of Oracle packages. I'd like to write a query that allows me to create a list of where a handful of common problems can be found within those packages.

What I've tried so far

I can join the first two sets of results together, but I'm having trouble joining the third set of results.

How can I get DDL for procedures that appear on a given package's spec?

Upvotes: 0

Views: 1674

Answers (1)

Vinish Kapoor
Vinish Kapoor

Reputation: 679

Try this one:

select dbms_metadata.get_ddl ('PACKAGE', 'YOURPACKAGENAME', 'YOURSCHEMA') from dual;

Upvotes: 1

Related Questions