Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Acessing ALL_SOURCE in a Procedure

OrlandoDiasJan 14 2009 — edited Jan 15 2009
Hi,

I'm trying to access all my source code developed for many users (schemas).

I wrote the following query:

SELECT TRIM(NAME) NAME, TRIM(TYPE) TYPE
FROM ALL_SOURCE
WHERE TYPE IN ('PACKAGE', 'PACKAGE BODY', 'FUNCTION', 'PROCEDURE', 'TYPE', 'TYPE BODY','TRIGGER')
AND OWNER = 'OWNER'
AND LINE = 1

When I'm executing on any client (SQLPLUS, PLSQLDEVELOPER etc), the result is correctly showed. When I execute the procedure with the same query, the result shows no lines.

What I'm doing wrong?

OD

Edited by: user4469789 on 14/01/2009 09:09
This post has been answered by William Robertson on Jan 14 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2009
Added on Jan 14 2009
11 comments
1,572 views