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

Home -> Community -> Usenet -> c.d.o.server -> Re: ORA-01000: maximum open cursors exceeded

Re: ORA-01000: maximum open cursors exceeded

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 18 Jan 2007 06:37:03 -0800
Message-ID: <1169131023.871656.189200@11g2000cwr.googlegroups.com>

On Jan 18, 9:28 am, a..._at_areasix.co.uk wrote:
> Thanks, I'm a bit of a beginner though, how would I get the cursor
> details to delete it, or is there an automatic process I can call?
>
>
>
> gazzag wrote:
> > a..._at_areasix.co.uk wrote:
> > > I am recieving this error that has everybody in the company stumped!
> > > The error is an 'ORA-01000: maximum open cursors exceeded' error. I
> > > have looked around on the internet and not found any answers.
>
> > > Basically, all I'm doing is using a VB.NET application to connect to an
> > > oracle database and run a query from a table I have created - Simply
> > > SELECT * FROM UPDATEQUEUE WHERE UQ_UPDATED='0'
>
> > > When I look in the console manager, it looks like there are 300 cursors
> > > open - but this is the only query I am running.
>
> > > Does anybody have any suggestions?
>
> > In my experience, .Net is notorious for not closing cursors it has
> > opened.
>
> > Type the following at a SQL*Plus prompt:
>
> > SQL> show parameter open_cursors
>
> > NAME TYPE VALUE
> > ------------------------------------ -----------
> > -----------------------------
> > open_cursors integer 300
> > SQL>
>
> > The indicates the maximum number of open cursors allowed per session on
> > that database - 300 in my case and yours too, by the sound of it.
> > Either:
>
> > 1. Re-write the VB code to close any cursors it opens, or
>
> > 2. Get your DBA to up the open_cursors parameter for that particular
> > database.
>
> > Although, why anyone should need more than 300 is beyond me. My
> > preference would be to correct the VB code.
>
> > HTH
>
> > -g- Hide quoted text -- Show quoted text -

I have also seen the open cursors problem from .net code where the code was supposedly closing the cursor. You might want to check the manuals for the connection pooling options/parameters. It seems that the developers actually had to make a couple of changes to eliminate the problem.

Better yet, code in java.

HTH -- Mark D Powell -- Received on Thu Jan 18 2007 - 08:37:03 CST

Original text of this message

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