Reputation: 6605
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?
Upvotes: 28
Views: 161033
Reputation: 1202
Implement upper case converter and search only for procedures.
Select * from ALL_SOURCE
where NAME = upper('daily_update')
and TYPE = 'PROCEDURE';
Upvotes: 0
Reputation: 9090
check your casing, the name is typically stored in upper case
SELECT * FROM all_source WHERE name = 'DAILY_UPDATE' ORDER BY TYPE, LINE;
Upvotes: 52