If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > JCC Driver (PreparedStatement)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-18-07, 10:08
jjdm jjdm is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
JCC Driver (PreparedStatement)

Hi

I really don't know why I don't find anything about this in the internet but I don't.. I hope that someone of you have experienced this problem, too.

I try to access a db2 V8.1 with java through the jcc-driver. I get the following results:

1. Try to connect through local db2 runtime client:
-> Unable to load T2 native library. Type 2 JDBC architecture is not yet supported by the IBM DB2 JDBC Universal Driver Architecture (but I have sqllib/lib in my java.library.path)

2. Try to connect directly (Type 4)
-> Doesn't support prepareStatement(String, int) where 'int' is eg. 'return generated values'

So have you as well noticed such behavior? Please let me know...

Flo
Reply With Quote
  #2 (permalink)  
Old 12-19-07, 11:26
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
have you set the classpath variable - this should point to the drivers
have a look at infocenter : jdbc connection setup : installing the db2 jdbc driver
http://publib.boulder.ibm.com/infoce.../v8//index.jsp
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 12-19-07, 11:31
jjdm jjdm is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
Yes

Yes, I've set them. I can actually use the driver. Everything works except the described prepared-statement (and probably other unsupported functionality). But what I really don't understand is, why the native stuff doesn't work because I have all the libraries in my library path..
Reply With Quote
  #4 (permalink)  
Old 12-20-07, 05:31
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
What are the exact error messages?
What is set in your CLASSPATH? (I think you are missing something.)

If you can establish a connection to DB2 (for case 2): Have you turned on a JDBC trace to figure out what really goes on between your application and DB2?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On