473,387 Members | 1,463 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,387 software developers and data experts.

db2 java application of 32-bit and 64-bit DB2 insatnce

I did a test on running db2 database java code on 32-bit and 64-bit
db2 instance.
It seams that java application with 32-bit JVM couldn't run at 64-bit
db2 instance.
Also 64-bit JVM couldn't run at 32-bit db2 instance.
I will show the following error:
A database problem has occurred - java.sql.SQLException: No suitable
driver

IBM only provides SQC on different 32-bit and 64-bit.
DB2 instance will have different LIB for 32 and 64 bit instance.
But for JAVA, I didn't find JAVA driver with 32-bit and 64-bit.
How DB2 get the driver for 32-bit and 64-bit instance?
When I upgrade db2 instance 32-bit to 64-bit, What will I need to do
for the exsting JAVA database application?
I just need to use 64-bit JVM recompile it and run it wiht 64-bit JVM?

thanks,
George
Mar 18 '08 #1
1 2710
zgh1970 wrote:
I did a test on running db2 database java code on 32-bit and 64-bit
db2 instance.
It seams that java application with 32-bit JVM couldn't run at 64-bit
db2 instance.
Correct, if you're using the Type2 driver.
Also 64-bit JVM couldn't run at 32-bit db2 instance.
I will show the following error:
A database problem has occurred - java.sql.SQLException: No suitable
driver

IBM only provides SQC on different 32-bit and 64-bit.
DB2 instance will have different LIB for 32 and 64 bit instance.
But for JAVA, I didn't find JAVA driver with 32-bit and 64-bit.
The type 2 driver will load libdb2 from the sqllib/lib directory, and that's
causing your problem.
How DB2 get the driver for 32-bit and 64-bit instance?
When I upgrade db2 instance 32-bit to 64-bit, What will I need to do
for the exsting JAVA database application?
Use a 64-bit JVM ;-)
I just need to use 64-bit JVM recompile it and run it wiht 64-bit JVM?
You shouldn't need to recompile anything, unless you have your own JNI code.
Or you can use a type 4 driver which would provide further independence
from the DB2 native code.
Mar 18 '08 #2

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

Similar topics

1
by: JW | last post by:
Hi, I am trying to see if I can display an animated .gif file on a Java application (that is, I do not want to have to show a series of static images to simulate animateion; I just want to...
2
by: Generic Usenet Account | last post by:
I am trying to create a Java application that reads a list of URLs from a file and stores their contents on the local file system. I have succeeded in accessing normal websites, but I am unable to...
13
by: Charles Handy | last post by:
How does FastCGI compare against java Apps running in java app servers like TomCat, Sun One, WebLogic and WebSphere? Is there a business case for switching from CGI to Java? Performance?...
2
by: Begoņa | last post by:
in my java application I've made a call to this stored procedure CREATE procedure pruebaICM @pANI varchar(20), @pTABLA varchar(20), @pInsert varchar(500), @pUpdate varchar(1000), @pFLAG...
2
Saghar
by: Saghar | last post by:
Hi, Could somebody help me about this topic? I want to know how we can call and execute a non-java source file in a java application. For example, a simple Java application is run, there is an...
6
crystal2005
by: crystal2005 | last post by:
Hello guys, I'm a beginner in Java application programming. I started to write a Java application in which link to MS Access database. I encountered a problem in deletion function. E.g. I would...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
4
by: MimiMi | last post by:
I want an application written in C# to start an application written in java and be able to communicate with each other. I believe one way to do this is to use socket programming, having the java...
0
by: yatinbvn | last post by:
hi hello friends i find that if we want publish our application to Nokia ovi store we must verified our java application from one of the CA(javaverified.com,verisign,thawate etc...) i need...
2
by: Stefan Olsson | last post by:
Hello Windows 7, latest Java installed. I have two jar files, on with the main class included which uses classes in the other java class. The two jar file names are swt.jar (contain...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.