This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes Problem: Unable to allocate a connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Problem: Unable to allocate a connection " Watch "Problem: Unable to allocate a connection " New topic
Author

Problem: Unable to allocate a connection

Gabriel Tomoloju
Greenhorn

Joined: Feb 23, 2004
Posts: 20
Hello,
I was accessing ingres directly via a Java application, using jdbc-odbc.
But, i sometimes get this error:

failed to set isolation level: Unable to allocate a connection

NOTE: I am using the Caribou Lake driver

Any ideas?
Thanks.
Sutham Rojanusorn
Greenhorn

Joined: Jul 10, 2004
Posts: 4
I think you should consult with your jdbc driver document for this
to see .. whether you can set database transaction.
Manish M Malhotra M
Greenhorn

Joined: Jul 06, 2004
Posts: 6
Hello,
I was accessing ingres directly via a Java application, using jdbc-odbc.
But, i sometimes get this error:

failed to set isolation level: Unable to allocate a connection

NOTE: I am using the Caribou Lake driver

Any ideas?
Thanks.
--------------------------------------------------------------------------------
Posts: 11 | Registered: Feb 2004 | IP: Logged

Sutham Rojanusorn
greenhorn
Member # 76563
posted July 10, 2004 10:13 AM
--------------------------------------------------------------------------------
I think you should consult with your jdbc driver document for this
to see .. whether you can set database transaction
===========================================================================
***************************************************************************
From Manish:

I think Sutham is correct, refer the jdbc driver doc. May be you need to set the transaction level. And what is the default transaction level with this driver would be helpful for you.

regards,
Manish
SE, PCS


Its difficult to break a hard nut but its not impossible.
arnel nicolas
Ranch Hand

Joined: Dec 16, 2003
Posts: 149
i guess this happens when you try to create multiple SQL statement in the same instance of the connection. The JDBC-ODBC bridge does not support this. If you want, you can create another instance on your JDBC connection then create your other SQL statement to this connection(resource intensive activity). Other than that try using the JDBC driver that comes with your database, besides JDBC-ODBC bridge has limitted functionality.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem: Unable to allocate a connection
 
Similar Threads
J2CA0020E : Is it important to select the correct DB2 JDBC Provider
Unable to locate shared memory
Unable to allocate shared memory
EJB application fails to load in WAS5.0
Control the Connections in the Connection Pool?