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: Not stored "stored procedure".

Re: Not stored "stored procedure".

From: Thomas Kyte <tkyte_at_oracle.com>
Date: 17 Jan 2005 13:54:34 -0800
Message-ID: <115998874.00008613.066@drn.newsguy.com>


In article <frunu0tnbvnaop86loi4slki9vvlrhn07e_at_4ax.com>, Sybrand Bakker says...
>
>On 17 Jan 2005 09:34:44 -0800, "Serguei" <gumenyuk_at_canada.com> wrote:
>
>>Dear Experts,
>>I have to test a stored procedure without inserting it's codes into a
>>database. How can I do this trick in Oracle?
>> Regards,
>> Serguei.
>
>convert it into an anonymous begin end block and run it through
>sql*plus. Parameters can be replaced by VARIABLES but of course they
>would need to be prefixed by a colon in the actual code.
>
>
>--
>Sybrand Bakker, Senior Oracle DBA

and execute "set role none" before executing it :)

SQL> set role none;
SQL> declare ........

else, what works as an anonymous block might well not have a chance of even compiling as a stored procedure.

-- 
Thomas Kyte
Oracle Public Sector
http://asktom.oracle.com/
opinions are my own and may not reflect those of Oracle Corporation
Received on Mon Jan 17 2005 - 15:54:34 CST

Original text of this message

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