Home » RDBMS Server » Server Administration » Procedure / functions in oracle
Procedure / functions in oracle [message #62459] Thu, 22 July 2004 21:55 Go to next message
Venkat
Messages: 110
Registered: February 2001
Senior Member
Hi ,
through what views can i see my procedures/functions  list and procedure/function body existing in a  particulr schema from a command promt.

Thanks ,
Venkat
Re: Procedure / functions in oracle [message #62460 is a reply to message #62459] Fri, 23 July 2004 00:21 Go to previous messageGo to next message
Frank Naude
Messages: 4587
Registered: April 1998
Senior Member
Hi,

Try the following to list all procedures/functions in your schema:

SQL> select distinct type, name from user_source;

TYPE         NAME
------------ ------------------------------
FUNCTION     TEST
PROCEDURE    HELLO
TRIGGER      TRG_PHONE_NUMBERS


To look at any particular functions/procedure's source:

SQL> select text from user_source where name = 'HELLO' order by line;

TEXT
--------------------------------------------------------------------------------
procedure hello as
begin
  null;
end;


Best regards.

Frank
Re: Procedure / functions in oracle [message #62461 is a reply to message #62459] Fri, 23 July 2004 00:22 Go to previous message
Anu
Messages: 82
Registered: May 2000
Member
hi!
try it out
select name, body from user_source where type='FUNCTION';

Hope it helps u
anu
Previous Topic: Oracle10g
Next Topic: Am unable to create database on IBM AIX Server
Goto Forum:
  


Current Time: Thu Jan 09 03:43:57 CST 2025