on 01-20-2010 12:49 PM
Hello everybody,
I am trying to establish a connection to a IBM DB2 9.5 database on a xMII 12.0 installation.
I never had so much trouble getting this job done. The error message in the NetWeaver
logs is just "Unable to create connection to database for MSC_DB2_TEST" - nothing more.
JDBC
+ Deployed driver = db2jcc.jar (from DB2 9.5)
IDBC Connector
+ Name: MSC_DB2_TEST
+ JDBCDriver = com.ibm.db2.jdbc.app.DB2Driver
+ ServerURL = jdbc:db2://host:1234/dbname
+ Valid user name and passwort
Any suggestions? Is there a way to get some useful error logs?
Best regards,
Martin
@Michael Appleby: It is Version 12.0.5 Build(126).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doesn't that driver require a license for it and maybe sqlj.jar? Is the jtopen driver a possibilty for your scenario?
Jamie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jamie Cawley: I added some more .jars and .zip comming with DB2, 1st the db2jcc_license_cu.jar to solve a potential license problem you mentioned. No success. I used the db2java.zip instead. No success. Finally I simply added all the .jars and .zips I found. No success.
Using another driver like jtopen is possible in our development environment, but not in productive installations of our customers. They insist that we use the official driver from IBM.
Isn't there a way to get useful error messages?
@Jamie Cawley: Thanks for your JDBCDriver hint. Now the database gets connected. The configuration is:
JDBC (JARs from DB2 9.5)
+ db2jcc.jar --> type 4 (pure Java) JDBC 3.0 driver
+ db2jcc_license_cu.jar --> license for the driver
IDBC Connector
+ JDBCDriver = com.ibm.db2.jcc._DB2Driver_
+ ServerURL = jdbc:db2://host:1234/dbname
+ Valid user name and passwort
+ ValidationQuery = SELECT CURRENT TIMESTAMP FROM SYSIBM.SYSDUMMY1
Regards,
Martin
What version and build of 12.0?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.