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 > COM.ibm.db2.jdbc.app.DB2Driver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-05, 23:22
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
COM.ibm.db2.jdbc.app.DB2Driver

Hi,
COM.ibm.db2.jdbc.app.DB2Driver

What jar should i use for this db2driver? Iam using db2java.jar . But i get errror message saying 'no suitable driver'.
Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 01-21-05, 01:47
KOHTPA KOHTPA is offline
Registered User
 
Join Date: Jan 2005
Posts: 2
Quote:
Originally Posted by sandhyab
Hi,
COM.ibm.db2.jdbc.app.DB2Driver

What jar should i use for this db2driver? Iam using db2java.jar . But i get errror message saying 'no suitable driver'.
Thanks in advance.
Know that You got it while installing db2 client. Look at "Programm Files\SQLLIB\java\db2java.zip" If your platform is windows. I dont know why DB2 developers renamed db2java.jar file to db2java.zip. I had just rename zip file back to jar and enjoy the work.

Last edited by KOHTPA; 01-21-05 at 01:57.
Reply With Quote
  #3 (permalink)  
Old 01-23-05, 18:30
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Wink

Thanks for your response.I tried renaming it but it still gives me "No Suitable driver".

Iam actually using db2 in a java application.In my local machine it is working fine with db2java.jar .But when i try to deploy it in production server, it is causing problems.

Any suggestion would appreciated.
Reply With Quote
  #4 (permalink)  
Old 01-23-05, 19:53
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I'm not sure if renaming the 'system' file is acceptable .. When you apply fixpaks, the db2java.jar file may not be updated .. Therefore your jdbc drivers may be out of step to the other db2 client components

Sandhya .. Sorry, are you sure it is the same bit of code you are trying to execute on both boxes ??


Cheers
Sathyaram


Quote:
Originally Posted by KOHTPA
Know that You got it while installing db2 client. Look at "Programm Files\SQLLIB\java\db2java.zip" If your platform is windows. I dont know why DB2 developers renamed db2java.jar file to db2java.zip. I had just rename zip file back to jar and enjoy the work.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-23-05, 20:43
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Thanks for your suggestions.
yes iam using the same bit of code. How do i make sure that i use the updated version of db2java.jar?
Reply With Quote
  #6 (permalink)  
Old 01-27-05, 19:55
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
I solved the problem.Solution is to close the resultset and statements after its use in the code. Now it works perfect.
Thanks for all your help
Reply With Quote
  #7 (permalink)  
Old 01-27-05, 20:17
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Sandhya, Thanks for taking time to give your feedback ... It is much appreciated - Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #8 (permalink)  
Old 08-02-11, 22:25
lindalau321 lindalau321 is offline
Registered User
 
Join Date: Aug 2011
Posts: 1
Quote:
Originally Posted by KOHTPA View Post
Know that You got it while installing db2 client. Look at "Programm Files\SQLLIB\java\db2java.zip" If your platform is windows. I dont know why DB2 developers renamed db2java.jar file to db2java.zip. I had just rename zip file back to jar and enjoy the work.
I GUESS because of some database management tool can detect jar file not zip file, so they have to rename the file to make it work. Example like SQuirreL-SQL.

Hopefully can help.

__________________________________________________ _______________
Home Services
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