IBM Support

IC75187: THE VALUE OF THE ALTER_TIME COLUMN OF SYSCAT.TABLES IS NOT CHANGED AFTER ALTER TABLE DDL IS RUN

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • After an alter table DDL is run, the value of the alter_time
    column of syscat.tables may be not changed accordingly.
    
    For example:
    
    > db2 "create table TEST1(c1 char(10))"
    DB20000I  The SQL command completed successfully.
    
    
    >date
    Tue Feb 22 08:38:35 CST 2011
    
    
    >db2 "select create_time, alter_time from syscat.tables where
    TABNAME='TEST1'"
    
    
    CREATE_TIME                ALTER_TIME
    
    -------------------------- --------------------------
    
    2011-02-22-08.38.29.354479 2011-02-22-08.38.29.354479
    
    
    
      1 record(s) selected.
    
    
    
    >date
    Tue Feb 22 08:39:18 CST 2011
    
    //add a column here using alter table DDL
    >db2 "alter table TEST1 add column c2 char(10)"
    DB20000I  The SQL command completed successfully.
    
    
    >db2 "select create_time, alter_time from syscat.tables where
    TABNAME='TEST1'"
    
    
    CREATE_TIME                ALTER_TIME
    
    -------------------------- --------------------------
    
    2011-02-22-08.38.29.354479 2011-02-22-08.38.29.354479
    
    
    //As the above shows, the timestamp value for ALTER_TIME column
    was still 2011-02-22-08.38.29.354479, which should have been
    changed.
    
    
    This issue only occurs in V9.7 or later, it doesn't occur in
    V9.5 version.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Problem Description above.                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 5                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in Version 9.7 Fix Pack 5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC75187

  • 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-03-22

  • Closed date

    2011-12-21

  • Last modified date

    2011-12-21

  • 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



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC75187

Modified date: 21 December 2011