IBM Support

IT29900: 901 with reason code "inconsistent QPDs for this XPR" WHEN QUERYHAS XML TABLE AND MQT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Db2 may generate 901 with Reason "inconsistent QPDs for this
    XPR", when the following conditions are met:
    
    o There is one MQT defined.
    o The query has join on multiple tables
    o Along with other table(s), we have mqt table and xml table
    
    Standalone repro:
    
    create table t(c1 XML);
    create table t1(c1 int not null  primary key);
    create table t2(c1 char(3));
    create table t3(t3c1 int, t3c2 int);
    
    CREATE TABLE
        m AS
        (
            SELECT
                t1.c1
            FROM
                t1  )
        DATA INITIALLY  DEFERRED REFRESH IMMEDIATE;
    
    SET INTEGRITY FOR m IMMEDIATE CHECKED NOT INCREMENTAL;
    
    FLUSH PACKAGE CACHE DYNAMIC;
    
    select t1.c1
    from  ( select c1 from t)t
          ,      (SELECT c1 FROM t1 ) t1
          ,      XMLTABLE( '$ds/RBdocument' PASSING t.c1 AS "ds"
    COLUMNS c CHAR(3) PATH 'c' ) AS x
          ,     t2 where      t2.c1 = x.c
    ;
    

Local fix

  • db2set DB2_COMPILER_XML_OVERRIDES=1
    db2stop
    db2start
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * MQT                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply v11.1 M4 FP6 to DB2 database server                    *
    ****************************************************************
    

Problem conclusion

  • First fixed in v11.1 M4 Fixpack 6
    

Temporary fix

  • SEE LOCAL FIX
    

Comments

APAR Information

  • APAR number

    IT29900

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-02

  • Closed date

    2021-03-29

  • Last modified date

    2021-03-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 June 2022