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 -> proc open cursor

proc open cursor

From: Udo Apolloner <bap_at_carinthia.com>
Date: Thu, 09 Mar 2000 14:09:08 +0100
Message-ID: <38C7A274.21C3891@carinthia.com>


Hi,

in the ( fragment ) of my program below the cursor seems to stay open after the "EXEC SQL CLOSE CU;" statement! the sqlca.sqlcode is 0 for all statements!

even the sqlplus statement
select user_name, sql_text from v$open_cursor; shows the cursor open at the time the read waits for input.

EXEC SQL declare cu cursor for select * from tbl; EXEC SQL open cu ;
EXEC SQL fetch cu into :result ;
EXEC SQL close cu ;
read(1,input,1);

i am using oracle 8.1.5 on linux

thanks,

udo Received on Thu Mar 09 2000 - 07:09:08 CST

Original text of this message

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