IBM Support

IT23072: SQL0156N WHEN UPDATING STATISTICS IN SYSSTAT.TABLES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQL0156N may be returned when trying to update tables' stats in
    SYSSTAT.TABLES catalog table:
    
    
    db2 "update sysstat.tables set overflow=0 where
    tabschema='DB2INST1'"
    SQL0156N  The name used for this operation is not a table.
    SQLSTATE=42809"
    
    
    The problem is related with user temporary tables which are not
    being taken into account hence causing the error.
    
    The fix would be to include also user temporary tables and
    update the stats.
    

Local fix

  • As a workaroung, temp tables can be omitted from the stats
    update:
    
    db2 "UPDATE SYSSTAT.TABLES SET OVERFLOW=0 WHERE
    TABSCHEMA='<tabschema>' AND TABNAME IN (SELECT TABNAME FROM
    SYSCAT.TABLES WHERE TABSCHEMA='<tabschema>' AND TYPE !='G')"
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users on DB2 v111m2fp2                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 v111m3fp3                                     *
    ****************************************************************
    

Problem conclusion

  • First Fixed in DB2 v111m3fp3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT23072

  • 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

    2017-11-07

  • Closed date

    2018-03-15

  • Last modified date

    2018-03-15

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

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

    IT23198

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 March 2018