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 IC91844 Status: Geschlossen

TRAP WHEN CREATING OR REPLACING A STORED PROCEDURE CONTAINING VARIABLES
ANCHORED TO A TABLE WITH IMPLICITLY HIDDEN COLUMNS

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
When you create or replace an SQL procedure that contains 
variables anchored to a table row with one or more IMPLICITLY 
HIDDEN columns, DB2 may crash in sqlnqBuildRowTypeDescriptor 
with the following elements present in the stack: 
 
Stack #1             Signal #11 
0        ?unknown 
1        sqlnqBuildRowTypeDescriptor 
2        sqlnqBuildRowTypeDescriptor 
3        sqlnq_psm_sem_act 
4        sqlnp_parser 
5        sqlnp_parser 
6        sqlnp_main 
7        sqlnn_cmpl 
8        sqlnn_cmpl 
9        sqlra_compile_var 
10       sqlra_find_var 
11       sqlra_get_var 
12       sqlri_ddl_get_section 
13       sqlri_ddl_common 
14       sqlriddl 
15       sqlriSectInvoke 
16       sqlrr_execute_immediate 
17       sqlrr_execimmd 
18       sqljs_ddm_excsqlimm 
19       sqljsParseRdbAccessed 
20 
.sqljsParse.fdpr.clone.52__FP13sqljsDrdaAsCbP14db2UCinterfaceP8s 
qeAgentb 
21       @63@sqljsSqlam 
22       @63@sqljsDriveRequests 
23       @63@sqljsDrdaAsInnerDriver 
24       sqljsDrdaAsDriver 
25       sqeAgent::RunEDU 
26       sqzEDUObj::EDUDriver 
27       sqloEDUEntry 
 
Example test : 
 
create table T1( 
  C1 integer, 
  C2 integer, 
  C3 timestamp not null implicitly hidden generated always for 
each row on update as row change timestamp 
  ) % 
 
insert into T1(C1, C2) values (42, 101) % 
 
create or replace procedure proc1 
begin 
  declare anchor1 anchor row T1; 
 
  select * into anchor1 from T1; 
  call dbms_output.put_line(anchor1.C1); 
end %
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Customer with stored procedure containing variables anchored * 
* to a table with implicitly hidden columns.                   * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade do DB2 LUW version 9.7 fixpack 9                     * 
****************************************************************
Local-Fix:
Instead of anchoring a variable directly to a table row with 
IMPLICITLY HIDDEN columns, create an equivalent row type 
definition that explicitly anchors each field to an individual 
table column, omitting any IMPLICITLY HIDDEN columns.  Then 
declare the variable using the row type. 
 
Using the example from the error description: 
 
create table T1( 
  C1 integer, 
  C2 integer, 
  C3 timestamp not null implicitly hidden generated always for 
each row on update as row change timestamp 
  ) % 
 
insert into T1(C1, C2) values (42, 101) % 
 
create type T1_row as row ( 
  C1 anchor to T1.C1, 
  C2 anchor to T1.C2 
  ) % 
 
create or replace procedure proc1 begin 
  declare anchor1 T1_row; 
 
  select * into anchor1 from T1; 
  call dbms_output.put_line(anchor1.C1); 
end %
verfügbare FixPacks:
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
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
23.04.2013
16.12.2013
16.12.2013
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP9
Problem behoben lt. FixList in der Version
9.7.0.9 FixList
9.7.0.9 FixList