Thread:
 After a while, Oracle throws this exception: too m... 
 dominikroblek   30 Dec 2003, 17:06 
 Re: After a while, Oracle throws this exception... 
 bworwood   20 Apr 2006, 08:10 
 Re: After a while, Oracle throws this except... 
 caili314   25 Oct 2006, 20:06 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: caili314 (25 Oct 2006, 20:06) Replies: 0, Views: 24155
Subject: Re: After a while, Oracle throws this exception: too ma...
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE
PAGE!On 20 Apr 2006 08:10, bworwood wrote:

>POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE
>PAGE!On 30 Dec 2003 17:06, dominikroblek wrote:

>>We are successfully using Hibernate with Oracle JDBC driver with
>>prepared statement cache enabled. We had to raise open cursor limit in
>>Oracle database as each cached prepared statement keeps one open
>cursor
>>on the database. Ask you DBA for assistance.

>I am having a similar problem - open cursors are not being cleared.
>Did you get over your issue?

I ran into the same problem when using DBCP connection provider in
Hibernate 2.1.2.  Traced into
net.sf.hibernate.connection.DBCPConnectionProvider, I found the
construction of statementPool didn't pass in maxTotal parameter, which
is used by GenericKeyedObjectPoolFactory to determine when to clear the
pool content. So the solutions can be either to pass in this parameter
or to disable statement pool by simply setting statemPool to null.  Both
work!
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]