IBM Support

IT34731: RUNSTATS ON KEY COLUMNS SET PROFILE ON COLUMN-ORGANIZED TABLE WITH NO INDEXES MIGHT LATER LEAD TO SQLCODE -901

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A series of operations starting with the definition of a
    RUNSTATS profile with the "ON KEY COLUMNS" option on a
    column-organized table with no indexes (or primary keys or
    unique constraints) can sometimes lead to the following SQL0901
    failure later when the table is referenced in queries or
    utilities:
    
    SQL0901N The SQL statement or command failed because of a
    database system
    error. (Reason "Packed descriptor corruption found. Please run
    RUNSTATS on
    this table".) SQLSTATE=58004
    
    Unfortunately running RUNSTATS on the table as the message
    instructs does not resolve this particular problem.
    

Local fix

  • Contact Db2 Support for a service utility and instructions to
    fix the packed descriptor; do not use "RUNSTATS ON KEY COLUMNS
    SET PROFILE" on a column-organized table with no indexes,
    primary keys or unique constraints.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 Version 11.1 Mod 4 Fix Pack 6                 *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 Version 11.1 Mod 4 Fix Pack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT34731

  • 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

    2020-10-29

  • Closed date

    2021-03-19

  • Last modified date

    2021-03-19

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

Document Information

Modified date:
03 May 2022