Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: ORA-01000: maximum open cursors exceeded
adam_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 300SQL> 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:
Although, why anyone should need more than 300 is beyond me. My preference would be to correct the VB code.
HTH -g Received on Thu Jan 18 2007 - 08:19:19 CST