4 Replies Last post: Dec 7, 2009 11:51 PM by gb2312  
gb2312   11 posts since
Nov 30, 2009
Currently Being Moderated

Dec 1, 2009 5:15 AM

A problem using of Netezza jdbc driver

Hi,

when i use Netezza jdbc driver connect to Netezza  database, i meet a problem

-------------------------------------------------------------------------------------------------

Connect to Netezza database by Netezza jdbc driver

Commit some sql

Disconnect Netezza database by Netezza jdbc driver(close the connection)

-------------------------------------------------------------------------------------------------

Above process is ok

But when I try to connect to Netezza database by Netezza jdbc driver for the second time in  the same application, there is exception:

(I can get the second connection , the exception is on the con.execute method)

the detail message is: Driver can process one query at one time

the vendor code is :11403

what's wrong with my code

Thanks,

Frank

Jeff Feinsmith   8 posts since
Mar 28, 2007
Currently Being Moderated
1. Dec 1, 2009 11:17 PM in response to: gb2312
Re: A problem using of Netezza jdbc driver

Frank,

 

Hard to tell exactly what you are hitting without your code, JDBC trace, nor rev of the driver.

 

That said, normally the error you are hitting is a result of attempting to execute more than one query simultaneously under the same connection instance.  Specifically, one connection instance can execute single query at a time.  This means, if one query is already under execution on a connection instance, you cannot send another query for execution at the same time.


Are you using multi-threading while using JDBC?  If this is the case then, then this might be happening because your application is passing the same connection instance in multiple threads and some of the threads are trying to send queries for execution.  Resolution is to disable multi-threading.

 

If this does not describe your issue, please open a Netezza support ticket as your specific use case may have exposed a defect in the driver.  Perhaps it may have been resolved in a more recent build...

 

-Jeff

Jeff Feinsmith   8 posts since
Mar 28, 2007
Currently Being Moderated
3. Dec 7, 2009 10:52 PM in response to: gb2312
Re: A problem using of Netezza jdbc driver

Frank,

 

Best that you open a ticket with Netezza Support at this point to get your problem resolved.

 

-Jeff

More Like This

  • Retrieving data ...