IBM Support

PH05868: CM BATCH OBJECT COMPARE DROP/CREATE COLUMN TEMPORAL TABLE INSTEAD OF DROP/CREATE BASE/TEMPORAL TABLES

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A Db2 restriction prevents an ALTER TABLE ADD COLUMN or ALTER
    TABLE DROP COLUMN statement from being used to add or drop a
    column in a temporal or history table.   To accomodate this
    restriction, CM Batch and Object Compare currently drop and
    recreate the base and temporal tables.  With this APAR applied,
    however, ALTER TABLE DROP VERSIONING will be executed before
    the ALTER ADD/DROP of the column, and ALTER TABLE ADD
    VERSIONING will be executed after.  The option "Unload Altered
    Tables" must be set to "YES".
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the Db2 Administration Tool for     *
    *                 z/OS or Db2 Object Comparison Tool for z/OS  *
    *                 who want to use ALTER TABLE ADD or DROP      *
    *                 COLUMN statements for temporal and history   *
    *                 tables.                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A Db2 Restriction prevents using        *
    *                      ALTER TABLE ADD COLUMN or               *
    *                      ALTER TABLE DROP COLUMN                 *
    *                      for temporal and history tables.        *
    *                      As a result, currently the base and     *
    *                      temporal tables are dropped and         *
    *                      recreated when a column is added or     *
    *                      dropped.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A DB2 Restriction prevents using ALTER TABLE ADD
    COLUMN or ALTER TABLE DROP COLUMN for temporal
    and history tables.
    
    CM Batch and Compare will now allow changes to temporal
    and history table columns to be done with ALTER TABLE ADD
    COLUMN and ALTER TABLE DROP COLUMN commands,
    by dropping the versioning, executing the ALTERs, and then
    adding the versioning back. Please note that the option
    "Unload Altered Tables" must be set to "YES".
    
    This will occur only if the changes to the columns of the
    temporal and history table are:
    
    1. Appending columns to the end only
    2. Dropping columns only
    3. Both dropping columns and appending columns to the end
    4. Not conflicting with any other DB2 Restrictions for adding
       and dropping of columns
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH05868

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-11-28

  • Closed date

    2019-07-02

  • Last modified date

    2019-08-01

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

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

    UI64047

Modules/Macros

  •    ADB2CMT  ADB2CMU  ADB2CM3
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI64047

       UP19/07/09 P F907

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":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
01 August 2019