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: How to test procedure that has OUT params in SQLPlus?

Re: How to test procedure that has OUT params in SQLPlus?

From: Tony Andrews <andrewst_at_onetel.com>
Date: 21 Jun 2005 07:29:25 -0700
Message-ID: <1119364165.700641.99220@g44g2000cwa.googlegroups.com>


ohaya wrote:
> Hi,
>
> I have created a procedure called decrypt_inmemory with following
> parameters:
>
> key IN varchar2, data IN varchar2, cleardata OUT varchar2
>
> I was wondering how I can test execute this procedure from within
> SQLPlus?
>
> How do I create a variable to receive the OUT parameter? And, how do I
> display this variable after I test-execute the procedure?

SQL> variable outvar varchar2(2000)
SQL> exec decrypt_inmemory ('x', 'y', :outvar)

PL/SQL procedure successfully completed.

SQL> print outvar

OUTVAR



This is the content of OUTVAR Received on Tue Jun 21 2005 - 09:29:25 CDT

Original text of this message

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