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.
Connect to DB2 database on remote server through JAVA application
Hi All
I want to connect to DB2 database located on remote OS/390 server. I would like to access this database from Java Application located on windows server.
I am using DB2 Universal JDBC Driver (com.ibm.db2.jcc.DB2Driver) to connect to DB2 database. The code gives following error when it tries to establish connection
SQLException information
Error msg: [ibm][db2][jcc][10109][10354] The version of the IBM Universal JDBC driver in use is not licensed for connectivity to QDB2 databases.
To connect to this DB2 server, please obtain a licensed copy of the IBM DB2 Universal Driver for JDBC and SQLJ.
An appropriate license file db2jcc_license_*.jar for this target platform must be installed to the application class path.
Connectivity to QDB2 databases is enabled by any of the following license files: [ db2jcc_license_cisuz.jar ].
SQLSTATE: null
Error code: -99999
If you are working in Eclipise, go to the database Driver, in the Extra Class Path tab, enter the full path to the db2jcc_licence_cu.jar file that you should have.
I don't know what this _cu stands for, perhaps this will be different on a non Win 2003 DB2.
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2. Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
how can we get lincense for DB2 connect, Is there any other way by which we can fetch data from DB2 database located on remote mainframe server. I mean to say using local program and FTP