Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to get the code of the stored procedure/package?

Re: How to get the code of the stored procedure/package?

From: Jomarlen <jomarlen_at_aol.com>
Date: 1997/12/23
Message-ID: <19971223020100.VAA12976@ladder01.news.aol.com>#1/1

>> Grace Tsai wrote:

 Does anybody know how to get the code of the stored procedure/package?
>>
 

>>Hakan Eren replied

 SELECT text FROM user_source
   WHERE name like 'YourProcFuncOrPAckageNAme' (o==> name = '....')    ORDER BY line;
>>

Well, that will almost do it, but if you've got similarly named objects that LIKE is going to give you problems and if you are selecting package text you'll have your spec and body all mixed up.

Try
 SELECT text FROM user_source
   WHERE name = 'YourProcFuncOrPAckageNAme'    ORDER BY type,line ASC

John Received on Tue Dec 23 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US