-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate with Oracle: too many open cursors
PostPosted: Tue Jan 09, 2007 5:44 am 
Newbie

Joined: Mon Jan 08, 2007 9:26 am
Posts: 4
Hibernate version: 3.1.3
JBOSS version: 4.0.4
Oracle version: 10g

I have read on hibernate site the article "After a while, Oracle throws this exception: too many open cursors". It simply says "The Oracle JDBC driver doesn't much like to have its prepared statements cached. Disable PreparedStatement caching for the connection pool."

Could somebody explain why should I disable PreparedStatement caching for the connection pool in order to avoid the "too many open cursors" Oracle error?

Disabling PreparedStatement caching would result in a drop of performance as far as I know. Before using Hibernate I used for years straight JDBC (without Hibernate) and I never got "too many open cursors" from Oracle, of course having the PreparedStatement cached by the Oracle driver. Now, with Hibernate I get a lot of this "too many open cursors" and so far the only solution I found is to increase the number of cursors in Oracle, but this is not scalable: during a single JTA transaction with heavily database deletes and inserts it needs hundreds of connections, when it could just use only one.

Thank you,
Bucegi Omu


Top
 Profile  
 
 Post subject: Can someone help?
PostPosted: Tue Jun 05, 2007 1:04 pm 
Newbie

Joined: Wed Jan 17, 2007 9:20 pm
Posts: 7
I am having the same trouble. If an expert can add to this discussion I'd appreciate it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.