IBM Support

PI55712: OC -TEMPORAL TABLE VERSION ALTER ADD FIELD ERROR -20180 ALTER.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • OC - TEMPORAL TABLE VERSION ALTER ADD FIELD ERROR -20180 ALTER.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS and DB2 Object Comparison Tool for      *
    *                 z/OS.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: When using the ALTER ADD statement to   *
    *                      add a column with a default value to    *
    *                      a temporal table, a column is added to  *
    *                      both the temporal table and history     *
    *                      table, but DB2 for z/OS does not add    *
    *                      the default value to the history table. *
    *                      When peforming a compare on the         *
    *                      history table, the applied change       *
    *                      attempts to alter the default value of  *
    *                      the history table, but DB2 of z/OS      *
    *                      does not allow the action and fails     *
    *                      with a SQLCODE=-20180                   *
    *                      / SQLCODEN20180 error message:          *
    *                                                              *
    *                        -20180 ALTER TABLE XXX.XXXX           *
    *                               COLUMN BBBB                    *
    *                               SET WITH DEFAULT 'AAAA'        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Altering the default value on a history table causes a
    SQLCODE=-20180 / SQLCODEN20180.
    

Problem conclusion

  • Problem is resolved.
    
    The new messages ADB7221W and ADB7222W are displayed when
    attempting to alter a default value on a history table.
    
    ADB7221W The default value for appended column >column_name<
    is not propagated from temporal table to the history table.
    
    Explanation: The default value can not be propagated to the
    history table when adding a new column in the temporal table
    because of DB2 limitation.
    System action: Processing continues.
    User response: None.
    
    ADB7222W The difference in the default value for column
    >column_name< can not be implemented in a history table.
    
    Explanation: The default value can not be altered
    in the history table because of DB2 limitation.
    System action: Processing continues.
    User response: None.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI55712

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-21

  • Closed date

    2016-02-09

  • Last modified date

    2016-03-02

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

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

    UI35220

Modules/Macros

  •    GOCCM2   H25GB10J
    

Fix information

  • Fixed component name

    DB2 OBJECT COMP

  • Fixed component ID

    5697G6400

Applicable component levels

  • RB10 PSY UI35220

       UP16/02/11 P F602

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSAUVH","label":"IBM Db2 Object Comparison Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021