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 > Connect to DB2 database on remote server through JAVA application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-07, 04:27
chetanmodi chetanmodi is offline
Registered User
 
Join Date: Feb 2007
Posts: 5
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

Thanks in advance
Chetan
Reply With Quote
  #2 (permalink)  
Old 02-09-07, 08:06
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
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
Reply With Quote
  #3 (permalink)  
Old 02-09-07, 09:02
chetanmodi chetanmodi is offline
Registered User
 
Join Date: Feb 2007
Posts: 5
I have already added db2jcc_licence_cu.jar file to class path of project.
Reply With Quote
  #4 (permalink)  
Old 02-11-07, 12:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
In order to connect directly to DB2 on OS/390, you need a license for DB2 Connect.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 02-12-07, 02:39
chetanmodi chetanmodi is offline
Registered User
 
Join Date: Feb 2007
Posts: 5
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
Reply With Quote
  #6 (permalink)  
Old 02-12-07, 08:05
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Ask your local IBM representative.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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