473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to change to an older JDBC driver

I have a Windows 2000 Server machine that runs DB2 UDB v7 fixpak 11. I
also have a Java program that uses JDBC to insert data into the
database.

Sometimes, the program encounters SQL0302N error ("The value of a host
variable in the EXECUTE or OPEN statement is too large for its
corresponding use", SQLSTATE=22001) when it tries to insert a
particular data into a table.

On my notebook, if I run the same program with the same data (and same
Java Runtime Environment 1.4.2), the program can insert the data
successfully into the database on the Windows 2000 Server machine. The
only difference is that my notebook's DB2 v7 is using a lower fixpak
than fixpak 11.

Therefore, I am suspecting that the new JDBC driver that comes with
fixpak 11 is causing the SQL error when the program runs on the
server.

I would like to try using the same JDBC driver on the server as on my
notebook. I know that I need to change db2java.zip file to the same
version as the one my notebook. What other file do I need to change? I
seem to remember that there's a particular DLL file that I need to
change as well.

Thanks in advance.

Yong Sing
Nov 12 '05 #1
1 2631
I thought it is db2jdbc.dll.

"yongsing" <oh********@yahoo.com.sg> wrote in message
news:59**************************@posting.google.c om...
I have a Windows 2000 Server machine that runs DB2 UDB v7 fixpak 11. I
also have a Java program that uses JDBC to insert data into the
database.

Sometimes, the program encounters SQL0302N error ("The value of a host
variable in the EXECUTE or OPEN statement is too large for its
corresponding use", SQLSTATE=22001) when it tries to insert a
particular data into a table.

On my notebook, if I run the same program with the same data (and same
Java Runtime Environment 1.4.2), the program can insert the data
successfully into the database on the Windows 2000 Server machine. The
only difference is that my notebook's DB2 v7 is using a lower fixpak
than fixpak 11.

Therefore, I am suspecting that the new JDBC driver that comes with
fixpak 11 is causing the SQL error when the program runs on the
server.

I would like to try using the same JDBC driver on the server as on my
notebook. I know that I need to change db2java.zip file to the same
version as the one my notebook. What other file do I need to change? I
seem to remember that there's a particular DLL file that I need to
change as well.

Thanks in advance.

Yong Sing

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
1
by: Axel Dachtler | last post by:
Hello, my Java-program can't load the JDBC driver. I always get a java.lang.NoClassDefFoundError when I run it. The JDBC Driver is in the directory: C:\programs\ora92\jdbc\lib I think I...
0
by: Nils Valentin | last post by:
Hi MySQL Fans ;-), Is it possible that the 3.08 series allows to connect to 4.0.14 versions but not to the 4.1 alpha-versions ? I get belows error when tryig to connect from DbVisualizer which...
3
by: Steverino | last post by:
Hi, I'm currently trying to learn DB2. I have the following version below installed on my server machine on my little LAN. However when I try to connect to it from my client machine, I receive...
4
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We...
0
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
2
by: Raquel | last post by:
Read this about the Universal JDBC Driver.... "In a Type 2 mode, the Universal JDBC driver provides local application performance gains (because it avoids using TCP/IP protocol to communicate to...
3
by: Anoop | last post by:
Is it true that there are no type 4 jdbc drivers to connect to a DB2 server v7.1? The DB2 server is hosted on ACF2 (OS/390). We would be connecting from windows and solaris boxes. If it is true,...
0
by: Jim Kennedy | last post by:
ALL DDL does a commit. Hence Drop Table movies; issues a commit. True you don't issue a commit and the driver does not issue a commit, but the server does for all DDL. That is probably where...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.