IBM Support

PK54239: MSG ADD PRIMARY KEY FAILED. TABLE XXX ALREADY HAS A 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 Administration Tool, using CM (Change Management), a
    duplicate primary key condition can occur. The PK appears in
    the table definition and again in an ALTER TABLE ADD PK
    statement in delta changes file. Error messages appear similar
    to the following during ANALYZE processing:
    .
    ADBCCME - Error(s) found. Please review output
    Add primary key failed. Table C717086.TB38621 already has a
       primary key
    ADBC002E - Severe error. Merge terminates
    .
    Additional symptoms: cc12 rc12
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Object Compare Ver 7.2.             *
    ****************************************************************
    * PROBLEM DESCRIPTION: CM REGISTER  processing added  an extra *
    *                      ADD  the PRIMARY  KEY statement because *
    *                      the table was  not dropped.  The table, *
    *                      however, was ADMIN DROPPED, which means *
    *                      that  PRIMARY KEY  was provided already *
    *                      by ALTERs.                              *
    ****************************************************************
    * RECOMMENDATION: Apply The PTF.                               *
    ****************************************************************
    The means by which ADMIN DROPPED tables could be tracked was
    added so  that while  the table was not dropped, it could be
    determined that the table was ADMIN DROPPED.
    

Problem conclusion

  • The problem has been fixed in Object Compare Ver 7.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK54239

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-10-08

  • Closed date

    2008-02-13

  • Last modified date

    2008-03-04

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

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

Modules/Macros

  •    GOC2CMP
    

Fix information

  • Fixed component name

    DB2 OBJECT COMP

  • Fixed component ID

    5697G6400

Applicable component levels

  • R720 PSY UK33680

       UP08/02/27 P F802

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

Document Information

Modified date:
04 March 2008