Jump to content
We've recently updated our Privacy Statement, available here ×

DB2 JDBC Connection failed under iReport 3.7.4


azh

Recommended Posts

I need to use a DB2 JDBC connection using iReport, the driver suggested is "IBM DB2 (COM.ibm.db2.jdbc.app.DB2Driver)"

Ireport is not packaged with db2 jdbc driver , so I've done the followng steps with out succès.

1. Menu Tools->Options->Classpath

     Add JAR:              db2java.zip, 

                                    db2jcc.jar, 

                                     db2jcc_license_cu.jar

2. Create new report with Database JDBC connection option and typed the following parameters:

      Name:                  DB2 JDBC Test

      JDBC Driver:       IBM DB2 (COM.ibm.db2.jdbc.app.DB2Driver)

      JDBC URL:         jdbc:db2:localhost/SampleDB

      username:         sample_user

      password:           1234567890

     Save password: checked

3. Click on Test Button to check the connection:

 

               SQL problems: [iBM][CLI Driver] CLI0124E  Invalid argument value. SQLSTATE=HY009

                jdbc:db2:localhost/SampleDB

 

 

4. The port number of DB2 is 50000, the database is OK since I'm using it in my application.

 

 The ultimate Guide documentation suggest another way using the iReport command menu Windows->Services.  This faild with COM.ibm.db2.jdbc.app.DB2Driver 

After the driver added abd database configured with  COM.ibm.db2.jdbc.jcc.DB2Driver The tables tree is displayed. again  I tried to create a new report with this JDBC driver and I get the message even if I checked the password saving.

IBM DB2 SampleDB

General problem: null

Please check your username and password. The DBMS is running?

 

Please help

 



Post Edited by azh at 06/24/2011 10:33



Post Edited by azh at 06/24/2011 10:52



Post Edited by azh at 06/24/2011 12:37
Link to comment
Share on other sites

  • 1 year later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 6 months later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...