home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC64150 Status: Closed

ADMIN_CMD HANGS OR THROWS SQL0469N WHILE CALLING DESCRIBE CALL PROCEDURE
STATEMENT.

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
The admin_cmd calling describe call statement hangs  or throws 
SQL0469N 
Repro - 
 
 
connect to sample; 
 
CREATE PROCEDURE newton.noLobProc ( out  parm1    SMALLINT, out 
parm2    INT, out  parm3    BIGINT, out  parm4    REAL, out 
parm5    FLOAT, out  parm6    DOUBLE, out  parm7    CHAR(200), 
out  parm8    VARCHAR(200), out  parm9    LONG VARCHAR, out 
parm10   DATE, out  parm11   TIME, out  parm12   TIMESTAMP ) 
EXTERNAL NAME 'blah!blah' DYNAMIC RESULT SETS 0  FENCED LANGUAGE 
C PARAMETER STYLE DB2SQL; 
 
 
 
DESCRIBE call newton.noLobProc( 1, ? , 8, ?,?,? ,? ,? ,? ,?,?, 
12 ); 
 
CALL ADMIN_CMD ('DESCRIBE call newton.noLobProc( 1, ? , 8, ?,?,? 
,? ,? ,? ,?,?, 12 )'); 
 
SQL0469N  The parameter mode OUT or INOUT is not valid for a 
parameter in the 
routine named "NOLOBPROC" with specific name 
"SQL091021065248000" (parameter 
number "1", name "PARM1").  SQLSTATE=42886
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* users of DESCRIBE command using admin_cmd                    * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* connect to sample;                                           * 
*                                                              * 
* CREATE PROCEDURE newton.noLobProc ( out  parm1    SMALLINT,  * 
* out  parm2    INT, out  parm3    BIGINT, out  parm4    REAL, * 
* out  parm5    FLOAT, out  parm6    DOUBLE, out  parm7        * 
* CHAR(200), out  parm8    VARCHAR(200), out  parm9    LONG    * 
* VARCHAR, out  parm10  DATE, out  parm11  TIME, out  parm12   * 
* TIMESTAMP ) EXTERNAL NAME 'blah!blah' DYNAMIC RESULT SETS 0  * 
* FENCED LANGUAGE C PARAMETER STYLE DB2SQL;                    * 
*                                                              * 
*                                                              * 
*                                                              * 
* DESCRIBE call newton.noLobProc( 1, ? , 8, ?,?,? ,? ,? ,?     * 
* ,?,?, 12 );                                                  * 
*                                                              * 
* CALL ADMIN_CMD ('DESCRIBE call newton.noLobProc( 1, ? , 8,   * 
* ?,?,? ,? ,? ,? ,?,?, 12 )');                                 * 
*                                                              * 
* above call to admin_cmd might hang.                          * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to v9.7 fp3 or use parmater marker inplace of user   * 
* supplied values                                              * 
****************************************************************
Local Fix:
use parameter marker(?) instead of user supplied values. 
the following call works.. 
CALL ADMIN_CMD ('DESCRIBE call newton.noLobProc( ?, ? , ?, 
?,?,? ,? ,? ,? ,?,?, ?)');
available fix packs:
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
V9.7 Fp3 contains fix
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
26.10.2009
14.05.2010
14.05.2010
Problem solved at the following versions (IBM BugInfos)
9.7.FP3
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.2 FixList