Groups > DB2 > DB2 MVS > Re: Problem using new driver with DB2 UDB 7.2




Problem using new driver with DB2 UDB 7.2

Problem using new driver with DB2 UDB 7.2
Sun, 13 Apr 2008 01:02:15 EDT
It seems that I can connect to the database using a url like jdbc:db2:// :
/database using the "new" driver from db2jcc.jar
(com.ibm.db2.jcc.DB2Driver). From my tool, I get a connection message like:

  

From:

OS Name:  Windows XP

OS Arch:  x86

OS Version:  5.1



To:

DB2/6000

DB2 UDB 7.2



Using:

IBM DB2 JDBC Universal Driver Architecture

3.50.152



But when I try to run a query (SELECT * FROM SCHEMA.TABLE), I get an error like


 jcc t4 10335 10366 http://3.50.152  Invalid operation: Connection is closed.
ERRORCODE=-4470, SQLSTATE=08003 (08003 = The connection does not exist.)



From my code, after checking that connection is not null and is not closed I
call preparedStatement.setObject() and I get an Exception like:

com.ibm.db2.jcc.b.hm:  jcc 20104 11269 http://3.50.152 The DDM command is not
supported.  Unsupported DDM command code point: 0x2014. ERRORCODE=-4499,
SQLSTATE=58014 (58014 = "The DDM command is not supported.") (-4499 =
"fatal error occurred that resulted in a disconnect.

Explanation: One possible cause is that a network error caused a socket to
disconnect.") This happens consistently, not randomly or intermittently.



DDM = Distributed Data Management but I don't understand what this error message
is trying to tell me.

  

The exact same query and method call works in both the tool and also in the code
when I use the old COM.ibm.db2.jdbc.app.DB2Driver (from db2java.zip) with no
problem.



I can connect to other databases using the new driver. For example, 



DB2

DSN07012



IBM DB2 JDBC Universal Driver Architecture

3.50.152



has no issues.

 

I notice that in the problem case I see:

DB2/6000

DB2 UDB 7.2



and in the working case I see:

DB2

DSN07012



I'm not sure whether that is significant or not.

 

Post Reply
Re: Problem using new driver with DB2 UDB 7.2
Sun, 13 Apr 2008 01:48:26 EDT
I thought I would try with a different version of the "new" driver and
got the following

  

DB2/6000

SQL07028

  

IBM DB2 JDBC Universal Driver Architecture

2.10.52 (driver version)

  

SELECT * FROM SCHEMA.TABLE;

  

[Error Code: -4499, SQL State: 58016]  The DDM parameter is not
supported.  Unsupported DDM parameter code point: 0x2450 
DB2ConnectionCorrelator: G94CCA24.K913.0369C3054030

Post Reply
Re: Problem using new driver with DB2 UDB 7.2
Mon, 14 Apr 2008 16:00:44 -040
marilynd@us.ibm.com wrote:
> It seems that I can connect to the database using a url like jdbc:db2:// :
/database using the "new" driver from db2jcc.jar
(com.ibm.db2.jcc.DB2Driver). From my tool, I get a connection message like:
> 
>   
> 
> From:
> 
> OS Name:  Windows XP
> 
> OS Arch:  x86
> 
> OS Version:  5.1
> 
> 
> 
> To:
> 
> DB2/6000
> 
> DB2 UDB 7.2
> 
> 
> 
> Using:
> 
> IBM DB2 JDBC Universal Driver Architecture
> 
> 3.50.152
> 
> 
> 
> But when I try to run a query (SELECT * FROM SCHEMA.TABLE), I get an error
like 
> 
>  jcc t4 10335 10366 http://3.50.152  Invalid operation: Connection is
closed. ERRORCODE=-4470, SQLSTATE=08003 (08003 = The connection does not
exist.)
> 
> 
> 
> From my code, after checking that connection is not null and is not closed
I call preparedStatement.setObject() and I get an Exception like:
> 
> com.ibm.db2.jcc.b.hm:  jcc 20104 11269 http://3.50.152 The DDM command is
not supported.  Unsupported DDM command code point: 0x2014. ERRORCODE=-4499,
SQLSTATE=58014 (58014 = "The DDM command is not supported.") (-4499 =
"fatal error occurred that resulted in a disconnect.
> 
> Explanation: One possible cause is that a network error caused a socket to
disconnect.") This happens consistently, not randomly or intermittently.
> 
> 
> 
> DDM = Distributed Data Management but I don't understand what this error
message is trying to tell me.
> 
>   
> 
> The exact same query and method call works in both the tool and also in the
code when I use the old COM.ibm.db2.jdbc.app.DB2Driver (from db2java.zip) with
no problem.
> 
> 
> 
> I can connect to other databases using the new driver. For example, 
> 
> 
> 
> DB2
> 
> DSN07012
> 
> 
> 
> IBM DB2 JDBC Universal Driver Architecture
> 
> 3.50.152
> 
> 
> 
> has no issues.
> 
>  
> 
> I notice that in the problem case I see:
> 
> DB2/6000
> 
> DB2 UDB 7.2
> 
> 
> 
> and in the working case I see:
> 
> DB2
> 
> DSN07012
> 
> 
> 
> I'm not sure whether that is significant or not.
> 
>  
> 
> Does anyone here have any idea what the root of the problem could be?


You are using DB2 V7.2 which went out of support a few years ago. Please 
try more current one (currently supoorted are: V8.x, V9.1 and V9.5).


DDM code point 2014 is: EXCSQLSET - Set SQL Environment
DDM code point 2450 is: SQLATTR - SQL Attributes

Post Reply
Re: Problem using new driver with DB2 UDB 7.2
Tue, 15 Apr 2008 13:41:12 EDT
 You are using DB2 V7.2 which went out of support a few years ago. Please try
more current one (currently supoorted are: V8.x, V9.1 and V9.5). 
Unfortunately, the chances that the client will pay to upgrade their database so
that I can upgrade my driver for all clients simultaneously are slim to none.

 

 DDM code point 2014 is: EXCSQLSET - Set SQL Environment

DDM code point 2450 is: SQLATTR - SQL Attributes


Post Reply
Re: Problem using new driver with DB2 UDB 7.2
Tue, 15 Apr 2008 14:13:31 -040
marilynd@us.ibm.com wrote:

> Unfortunately, the chances that the client will pay to upgrade their
database ...

This implies that client wants to remain on unsupported software. That 
is their business decision I guess.

> Are these Attributes and Environment set by the driver?

Most likely they are. One way to find out what is going on would be to 
look at trace - if you are on supported level of software.

I do not think you need to update your driver - you were using driver 
3.10.152 which is V9.5 GA and/or 2.10.52 which is V8 at FP14 - both are 
fully supported.

Your problem is that you are trying to connect to back level database - 
V9.5 client cannot connect to V7 database.

V8.1 client could connect - but with all documented restrictions.

Another problem is that yoiu are using JCC driver - which V7 database 
does not know anything at all.

You may have better luck with (deprecated - possibly removed from future 
releases!) legacy app driver instead of JCC driver.

Post Reply
about | contact