Graham Triggs
unread,Aug 24, 2015, 5:30:26 PM8/24/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blanco, Jose, dspac...@lists.sourceforge.net, Rodrigo Castro Artigas
Simply put, if you are using an Oracle database, it simply doesn't work
(usefully).
Every PreparedStatement that is cached will have an open Connection
attached to it, which can't be re-used by the pool.
If you want to use statement pools with Oracle, then you'll need to
rewrite the DatabaseManager to use Oracle's own implicit connection
cache instead of dbcp (which is kind of on my to do list).
- although, if you can ensure that the PreparedStatement cache can never
be larger than the connection pool, then you presumably should be ok.
I'm not sure of the exact behaviour of the Postgres driver as I haven't
had cause to look into it - but this is an issue to be aware of with Oracle.
G
Blanco, Jose wrote:
> Graham:
>
> I notice that the default for db.statementpool is true, should we have this set to false. What is the danger in leaving it at true?
>
> Thanks!
> Jose
>
> -----Original Message-----
> From:
dspace-te...@lists.sourceforge.net [mailto:
dspace-te...@lists.sourceforge.net] On Behalf Of Graham Triggs
> Sent: Tuesday, December 11, 2007 12:49 PM
> To: Rodrigo Castro Artigas
> Cc:
dspac...@lists.sourceforge.net
> Subject: Re: [Dspace-tech] ORA-01000: nUmero mAximo de cursoresabiertos excedido
>
> Hi,
>
> Ensure that you have disable the prepared statement cache in your
> dspace.cfg:
>
> db.statementpool = false
>
> G
>
> On Tue, 2007-12-11 at 14:26 -0300, Rodrigo Castro Artigas wrote:
>
>> HI, I AM run process import and have the followind message:
>>
>> java.sql.SQLException: ORA-01000: número máximo de cursores abiertos