IBM Support

PM32203: ALTER TABLE ADD PRIMARY KEY APPEARS IN .CHG FILE AFTER DROP/ RECREATE OF TABLE CONTAINING PRIMARY KEY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In DB2 Object Comparison Tool for z/OS, an extra ALTER
    TABLE ADD PRIMARY KEY appears in the .CHG file when compared
    table is dropped/recreated and CREATE TABLE DDL contains
    PRIMARY KEY keyword.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool for  *
    *                 z/OS who compare tables with unique          *
    *                 constraints.                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: DB2 Object Comparison Tool generates an *
    *                      ALTER TABLE ADD PRIMARY KEY statement   *
    *                      although a CREATE TABLE statement with  *
    *                      a primary key has been generated for    *
    *                      the same table.  When applying the      *
    *                      change, DB2 will issue message          *
    *                      SQLCODE = -624/SQLCODEN624,             *
    *                      SQLSTATE = 42889.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The DB2 Object Comparison Tool generates an ALTER TABLE ADD
    PRIMARY KEY statement although a CREATE TABLE statement with a
    primary key has been generated for the same table.
    

Problem conclusion

  • The DB2 Object Comparison Tool has been changed to correctly
    detect unique constraints.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM32203

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-02-08

  • Closed date

    2011-04-01

  • Last modified date

    2011-05-02

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

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

Modules/Macros

  •    ADB2CMF
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK66440

       UP11/04/08 P F104

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

Document Information

Modified date:
02 May 2011