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

Listing contents of stored procedures 1

Status
Not open for further replies.

mahesh736

Programmer
Jul 20, 2001
9
US
Is there any way I can programitically list the contents of all package bodies to a file?

The query,
"select * from sys.user_objects where object_type = 'PACKAGE BODY'"
gives me just the names of all the package bodies.

Which table stores the contents of the package bodies?

Thanks

 
This gives you the actual code for a procedure:

select name, type, line, text
from user_source
where type = 'PROCEDURE'
and name = '<procedure name>'
order by name, line &quot;Helping others to help themselves...&quot;
=================================
Thomas V. Flaherty Jr.
Birch Hill Technology Group, Inc.
 
Here are the types of objects you can get from USER/ALL/DBA_SOURCE:

TYPE
------------
FUNCTION
PACKAGE
PACKAGE BODY
PROCEDURE
TYPE &quot;Helping others to help themselves...&quot;
=================================
Thomas V. Flaherty Jr.
Birch Hill Technology Group, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top