472,347 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,347 software developers and data experts.

ORA-01000 maximum open cursors exceeded

We are encountering the problem of "maximum open cursors exceeded"
exception.

Our web based system uses jdk1.3 as frontend with Oracle 9i as backend
and Oracle JDBC Driver version - 9.0.2.0.0 for connectivity.

Connection pooling is being used and the resultset is fetched in the
functions and returned to JSPs where the functions are being called.

As per the articles on the net this exception occurs as a result of
not closing the prepared statements/ statements/ resultSets.

The problem is how do we close the statements as we are using the
resultsets in the JSPs. We cannot close the prepared statements/
statements/ resultSets in the JSPs as we cannot access them because
they are local to the respective functions. Nor can we close them in
the functions as we are retrieving the records from the resultsets in
our JSPs.

Kindly reply with a solution as soon as possible.
Jul 19 '05 #1
3 21373
Deepali ,

I would select your results into a java object(i.e.hash table) in a
serverlet then close the cursor.
"Deepali Gupta" <de***********@yahoo.co.uk> wrote in message
news:c1**************************@posting.google.c om...
We are encountering the problem of "maximum open cursors exceeded"
exception.

Our web based system uses jdk1.3 as frontend with Oracle 9i as backend
and Oracle JDBC Driver version - 9.0.2.0.0 for connectivity.

Connection pooling is being used and the resultset is fetched in the
functions and returned to JSPs where the functions are being called.

As per the articles on the net this exception occurs as a result of
not closing the prepared statements/ statements/ resultSets.

The problem is how do we close the statements as we are using the
resultsets in the JSPs. We cannot close the prepared statements/
statements/ resultSets in the JSPs as we cannot access them because
they are local to the respective functions. Nor can we close them in
the functions as we are retrieving the records from the resultsets in
our JSPs.

Kindly reply with a solution as soon as possible.

Jul 19 '05 #2
"Dan White" <da*@omegaconcepts.net> wrote in message news:<ex*****************@nwrdny01.gnilink.net>...
Deepali ,

I would select your results into a java object(i.e.hash table) in a
serverlet then close the cursor.

Which is obviously a completely undesirable solution as you won't see
any changes to the table anymore. The OP just needs to increase the
init.ora parameter open_cursors and bounce the database.
I would strongly urge you to learn something about relational
databases.
Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #3
sy******@yahoo.com wrote in message news:<a1*************************@posting.google.c om>...
"Dan White" <da*@omegaconcepts.net> wrote in message news:<ex*****************@nwrdny01.gnilink.net>...
Deepali ,

I would select your results into a java object(i.e.hash table) in a
serverlet then close the cursor.

Which is obviously a completely undesirable solution as you won't see
any changes to the table anymore. The OP just needs to increase the
init.ora parameter open_cursors and bounce the database.
I would strongly urge you to learn something about relational
databases.
Sybrand Bakker
Senior Oracle DBA


If the problem is that statements aren't closed properly, increasing
open_cursors will only make it last a little longer before you have the
same problem again. If you're lucky the connection pool will clean up for
you but that solution is pure symptom fighting and will not help you.
Erik
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Subrahmanyam Arya | last post by:
Dear oracle gurus, I am unable to get past the error ORA-12154: TNS: could not resolve service name on my host when using hsodbc to talk to a...
6
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied ...
1
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP...
1
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works...
6
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
4
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I...
2
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file...
2
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes...
1
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.