Is there a way to list functions/procedures in a package?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Is there a way to list functions/procedures in a package?

Post by dados » Wed 22 Jul 2009 16:25

Is there a way to list functions/procedures in a package? or any pl/sql parser

jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Post by jfudickar » Wed 22 Jul 2009 16:48

Try the following select:

Code: Select all

select  DECODE (MIN(POSITION),
                1, 'PROCEDURE',
                0, 'FUNCTION', NULL) TYPE,
                object_name
  from  all_arguments
  where owner = :owner
    and package_name = :package_name
  group by package_name, object_name
This will work only with the public procedures. Not the internal procedures.

Kind regards
Jens

dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Post by dados » Thu 23 Jul 2009 14:56

Thanks, but I'm really looking for a plsql parser that I can use to list all ext/int func/proc/varibles in a package/func/proc...any ideas?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 03 Aug 2009 09:20

ODAC does not have such parser.

Post Reply