zen$an
zen$an
Originally posted by Zensan:
Thanks for the reply.
I dont want to use jdbc connection. Is there any other way to achieve this? Actually the value returned by the stored procedure is based on some calculation. If i put that in a ref_cursor like given below, will i be able to get the local variable 'ln_out_parameter'??
<blockquote><font size="1" face="Verdana, Arial">code:</font><hr><pre name="code" class="core"><font size="2">CREATE OR REPLACE PROCEDURE TIUSER.TestProc (out_refcursor OUT SYS_REFCURSOR) as
BEGIN
ln_out_parameter := ln_val1|| ln_val2;
OPEN out_refcursor FOR SELECT ln_out_parameter FROM dual;
END; </font></pre><hr></blockquote>
zen$an
Originally posted by KV Zensan:
Thanks again!
It is not necessary that ref cursor should match a table structure. I did the same way i mentioned earlier, fetching the local variable in the cursor. And believe me it worked!!
All that was required to retrieve the value in java is...