IBM Support

IT26337: DB2 MAY THROW A SQL0901N 'XML Stats Sanity check failed' error DURING A AUTO RUNSTATS ON a XML TABLE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Db2 detects mismatched node counts during auto runstats.
    
    Here is the sample entry in db2diag.log:
    
    FUNCTION: DB2 UDB, XML Node Manager, XmlrnStatsCheckSanity,
    probe:20
    DATA #1 : String, 32 bytes
    # Non-Null Docs > Sum Node Count
    DATA #2 : String, 13 bytes
    Non-Null Docs
    DATA #3 : unsigned integer, 8 bytes
    16060
    DATA #4 : String, 14 bytes
    Sum Node count
    DATA #5 : unsigned integer, 8 bytes
    16059
    

Local fix

  • Insert XML documents that have something in addition to a root
    tag (such as some text).
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 Mod 4 Fixpack 5 or higher                *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1 Mod 4 Fixpack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT26337

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-09-18

  • Closed date

    2020-01-16

  • Last modified date

    2020-01-16

  • 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

  • RB10 PSN

       UP

[{"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":"10.5","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 May 2022