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 18:40:17 +0100
Message-ID: <2CF83791A616BB4DA203FFD13007824A021440BE@MSXVS02.trivadis.com>


Hi Guang

>1. Why did I see the open_cursor jump from 1 to 3 when I just opened =
one
>cursor, then to 5 when the second cursor opened?

Because each statement count.

1) PL/SQL block
2) SELECT RID from customers
3) select count(*) from v$open_cursor where sid=3D9

>2. Why did I get the same count before and after close the cursor?

Because Oracle automatically caches SQL statements executed in PL/SQL. = Read "Usage Notes" under =
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/13_el= ems33.htm#35174.

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 17 2005 - 12:43:47 CST

Original text of this message

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