IBM Support

PH06931: DB2 ADMIN TOOL - FOREIGN KEYS NOT RECREATED AFTER DROP PRIMARY KEY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When the primary index of a parent table is updated and the
    change requires the DROP/CREATE of the primary key index of
    the parent (by ALTER TABLE/DROP PRIMARY KEY followed by DROP/
    CREATE unique index) the primary key is recreated afterwards by
    ALTER TABLE/ADD PRIMARY KEY but the foreign keys of the children
    table(s) are not re-established.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Object Comparison Tool for z/OS *
    *                 who compare tables that have referential     *
    *                 constraints.                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: Compare may not restore referential     *
    *                      constraints, specifically recreating    *
    *                      foreign keys that have been dropped,    *
    *                      when an index on a table needs to be    *
    *                      dropped and recreated.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The target table's primary index needs to be updated as a result
    of the Compare. For this to take place, the index must be
    dropped and recreated. In order to drop the index, the primary
    key must be dropped. The dropping of this primary key causes a
    reactionary drop of the foreign keys on its child tables. The
    change file does not contain the proper recreate DDL for the
    

Problem conclusion

  • Problem has been resolved. .
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH06931

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    B20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-01-07

  • Closed date

    2019-05-09

  • Last modified date

    2019-06-03

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

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

    UI62947 UI62948

Modules/Macros

  •    ADB2CMR
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RB20 PSY UI62947

       UP19/05/16 P F905

  • RC10 PSY UI62948

       UP19/05/16 P F905

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

Document Information

Modified date:
03 June 2019