home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC83718 Status: Geschlossen

Signal #11 crash or 901 when calling SQL procedure while CASTing an OUT
parameter marker or host variable

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
DB2 will terminate abnormally when calling an SQL procedure 
under the following conditions: 
 
- The procedure is declared with at least one OUT parameter of 
type CHAR; 
- The corresponding parameter in the CALL statement is a 
parameter marker that has been cast to an INTEGER type. 
 
For example: 
 
create or replace procedure proc1(out param CHAR(5)) 
begin 
end 
% 
call proc1(CAST(? as INTEGER)); 
% 
 
You will observe a stack trace similar to the following: 
 
ossDumpStackTraceEx 
OSSTrapFile6dumpEx 
sqlo_trce 
sqloEDUCodeTrapHandler 
__restore_rt 
sqlddFreeDD 
sqlnq_describe_call_parms 
sqlnq_describe 
sqlnn_cmpl 
sqlnn_cmpl 
sqlra_compile_var 
sqlra_find_var 
(truncated stack) 
 
ALSO : 
901 can be reported while executing CALL stmt with NOOP CAST on 
OUT/INOUT type parameter 
 
CREATE or replace PROCEDURE  P_INOUT 
INOUT RES FLOAT) 
begin 
end 
% 
CREATE or replace PROCEDURE CALLER1 
LANGUAGE SQL 
P1: 
BEGIN 
  DECLARE V1 FLOAT;-- 
  CALL  P_INOUT(double(V1));-- 
END 
%
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Apply v9.7 Fixpack 7 to the DB2 database server.             * 
****************************************************************
Local-Fix:
Do not use CAST on OUT/INOUT parameter markers
verfügbare FixPacks:
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 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
This is a server side fix.  First fixed in v9.7 Fixpack 7.
Workaround
See LOCAL FIX.
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC88350 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
24.05.2012
20.10.2012
20.10.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP7
Problem behoben lt. FixList in der Version
9.7.0.7 FixList