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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: open/close cursor question

RE: open/close cursor question

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Thu, 17 Mar 2005 07:51:36 +0100
Message-ID: <2CF83791A616BB4DA203FFD13007824A021440AD@MSXVS02.trivadis.com>


Hi Guang

> 16 select count(*) into cnt_cursor from v$open_cursor where =
sid=3D9;
> 17 dbms_output.put_line('1st time, before close cursor total =
number
> of open cursors =3D' || cnt_cursor );
> 18 CLOSE outmsg ;
> 19 dbms_output.put_line('1st time, after close cursor total =
number=20
> of open cursors =3D' || cnt_cursor );

The variable cnt_cursor cannot change between line 17 and 19. So, why do = you expect different values?

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 17 2005 - 01:55:04 CST

Original text of this message

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