IBM Support

IC78131: THE VALUE FOR STATISTICS_TIME COLUMN IN EXPLAIN TABLE EXPLAIN_OBJECT CAN BE TRUNCATED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The value for STATISTICS_TIME column in EXPLAIN Table
    EXPLAIN_OBJECT can be truncated.
    
    Reproduction:
    
    db2sampl -xml -sql
    db2 connect to sample
    db2 -tvf C:\progra~1\IBM\sqllib_02\misc\EXPLAIN.DDL
    db2 "RUNSTATS ON TABLE DB2ADMIN.STAFF WITH DISTRIBUTION ON ALL
    COLUMNS"
    db2 "RUNSTATS ON TABLE DB2ADMIN.STAFF FOR INDEXES ALL"
    db2level
    db2 "EXPLAIN PLAN FOR SELECT * FROM DB2ADMIN.STAFF"
    
    C:\tmp>db2 "SELECT SUBSTR(TABNAME,1,40) AS NAME, STATS_TIME FROM
    SYSCAT.TABLES WHERE TABNAME ='STAFF'"
    
    NAME                                     STATS_TIME
    ----------------------------------------
    --------------------------
    STAFF
    2011-08-11-15.26.03.456000
    
      1 record(s) selected.
    
    
    C:\tmp>db2 "SELECT SUBSTR(OBJECT_NAME,1,40) AS NAME,
    STATISTICS_TIME FROM DB2ADMIN.EXPLAIN_OBJECT"
    
    NAME                                     STATISTICS_TIME
    ----------------------------------------
    --------------------------
    STAFF
    2011-08-11-00.00.00.000000
    
      1 record(s) selected.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * THE VALUE FOR STATISTICS_TIME COLUMN IN EXPLAIN TABLE        *
    * EXPLAIN_OBJECT CAN BE TRUNCATED.                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 v9.7 Fixpack 6.                               *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 v9.7 Fixpack 6.
    
    - The lack of precision in the statistics times stored in the
    packed descriptor should not have any adverse effect on general
    database operations.
    - Refresh the metadata, for example, via RUNSTATS, only if the
    incorrect stats time seen in the explain tables is something
    that you want to resolve; otherwise, let your current statistics
    collection procedure refresh the metadata over time.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC78131

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-15

  • Closed date

    2012-06-04

  • Last modified date

    2012-06-04

  • 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

  • R970 PSN

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

Document Information

Modified date:
04 June 2012