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

Home -> Community -> Usenet -> c.d.o.server -> Re: Coding of Stored Procedure

Re: Coding of Stored Procedure

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Wed, 18 Dec 2002 09:17:27 -0000
Message-ID: <3e003d28$0$241$ed9e5944@reading.news.pipex.net>


"Charles" <charles_at_sf-express.com> wrote in message news:ed69de45.0212180113.436f9ad9_at_posting.google.com...
> Hi all,
> May anyone help? How can I find out the previous version of some
> stored procedure?

If you mean the code behind the sp that is in the database now then

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

should do it.

If you mean the code that was there before you ran

create or replace procedure blah .......

then you need to go to your version control software if you have it, or restore a backup (either physical or logical).

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer

******************************************
Received on Wed Dec 18 2002 - 03:17:27 CST

Original text of this message

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