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

STORED PROCEDURES 1

Status
Not open for further replies.

Mike29Palms

Instructor
Aug 22, 2003
11
US
Is there a way to retrieve the text of a stored procedure from the data dictionary?

 
desc all_source as system

something like select text from all_source where name = 'MY_PROCEDURE' and type = 'PROCEDURE' order by line;

I am not right at my databasse to get exact column names, but that is real close

I tried to remain child-like, all I acheived was childish.
 
Can you do a the same to pull out insert statements that populated tables in your database?
 
You can search all_source for INSERT but that will only find inserts in functions, procedures and package bodys not in forms or triggers.

Select distinct name, owner from all_source where upper(text) like '%INSERT%';

I tried to remain child-like, all I acheived was childish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top