IBM Support

PH48760: OBJECT COMPARE: INCORRECT HANDLING OF ALTER TABLE <TB> ADD <COL> GENERATED BY DEFAULT IDENTITY AND ADD NEW INDEX

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Object Compare generates the incorrect order of DDL statements
    when ALTER TABLE <TB> ADD <COL> GENERATED BY DEFAULT IDENTITY
    and ADD NEW INDEX is specified as the delta changes between the
    source and target.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Administration Tool for z/OS    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Object Compare generates the incorrect  *
    *                      order of DDL statements when importing  *
    *                      change statements.                      *
    ****************************************************************
    The following statements are imported into Change Management
    as a change. Then this change is analyzed and run.
      ALTER TABLE <TB1> ADD <COLX> GENERATED BY DEFAULT IDENTITY
      CREATE INDEX ON <TB1> ( <COLX> )
    
    When this change is applied to the target Db2 catalog,
    statements are in the incorrect reverse order.
      CREATE INDEX ON <TB1> ( <COLX> )
      ALTER TABLE <TB1> ADD <COLX> GENERATED BY DEFAULT IDENTITY
    
    Object Compare should generate ALTER TABLE first and then CREATE
    INDEX, because COLX is added to TB1 by the ALTER TABLE statement
    
    Keywords: GENERATED, IDENTITY
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH48760

  • 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

    2022-08-17

  • Closed date

    2023-01-20

  • Last modified date

    2023-02-01

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

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

    UI90181 UI90182

Modules/Macros

  • ADB2CME  ADB2CMR  ADB2CMT
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI90181

       UP23/02/01 P F301

  • RD10 PSY UI90182

       UP23/02/01 P F301

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 February 2023