select text from user_source where name = '<PROCEDURE_NAME>' order by line;

you can do the same for functions, packages and types

select text from user_source where name = '<PACKAGE_NAME>' and type =
'PACKAGE' order by line;
select text from user_source where name = '<PACKAGE_NAME>' and type =
'PACKAGE BODY' order by line;

also can use dba_source.

Cheers,
Neil.

-----Original Message-----
Sent: 05 March 2003 13:35
To: Multiple recipients of list ORACLE-L


Hi.

i need some help. i'm trying to get a stored  procedure source code from 
the database.

After a lot of reding i found :

select * from user_objects where object_type='PROCEDURE';

and i've got the name and Object_id of that prodedure but i have no 
ideea how to get the rest :(


please help,

adrian


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Adrian Ciocildau
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: McBain, Neil  SITI-ITDIEEE
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to