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

Home -> Community -> Mailing Lists -> Oracle-L -> max open cursors exceeded

max open cursors exceeded

From: Daiminger, Helmut <Helmut.Daiminger_at_KirchGruppe.de>
Date: Thu, 28 Feb 2002 00:28:21 -0800
Message-ID: <F001.0041AB3C.20020228002821@fatcity.com>


Hi!

We are having problems with Oracle interMedia text and open cursors used:

our instance has open_cursors et to 1000. We check the number of open cursors regularly using:

break on report
comp sum of curs on report
select User_Name, SID, count(*) Curs from v$open_cursor group by User_Name, SID order by User_Name, SID;

the corresponding sql text is extracted from the dd using:

select SID, User_Name, SQL_Text from v$open_cursor order by User_Name, SID, SQL_Text;

ususally, the number of open cursors used is about 300. if we are using interMedia text option, it usually rises and rises every day. after bouncing the instance, we are back to slightly below 300.

Questions:

  1. MAX_OPEN_CURSORS is set to 1000 - when exceeding that threshold, we're experiencing problems; how can we monitor which users uses up all the cursors (and how many).
  2. What exactly is displayed when querying v$open_cursor? - I know htat there are parsed statements of the user/session - but this should be more than just a PL/SQL "declare cursor... open...fetch...close cursor", right? What about statements issued in SQL*Plus or through JDBC etc.?
  3. The results from v$open_cursor is equivalent to the currently running transaction, right? So when are those entries removed again? When the transaction commits or when the sessions ends? Or when issuing a PL/SQL "close cursor". Or are those entries overwritten? by whom? when?
  4. what does querying "select * from v$sql_cursor" return?

Any ideas?

This is 8.1.7 on Sun Solaris.

Thanks,
Helmut

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Daiminger, Helmut
  INET: Helmut.Daiminger_at_KirchGruppe.de

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Feb 28 2002 - 02:28:21 CST

Original text of this message

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