How to View Oracle Stored Procedure using SQLPlus?

Madam Zu Zu picture Madam Zu Zu · Aug 9, 2011 · Viewed 131.7k times · Source

How can I view the code of a stored procedure using sqlplus for Oracle 10g?

When I type in:

desc daily_update; 

it shows me the parameter, but when I try to do the following:

select * from all_source where name = 'daily_update';

I get

no rows selected

What am I doing wrong?

Answer

Harrison picture Harrison · Aug 9, 2011

check your casing, the name is typically stored in upper case

SELECT * FROM all_source WHERE name = 'DAILY_UPDATE' ORDER BY TYPE, LINE;