IBM Support

PH69942: OBJECT COMPARE GENERATING INCORRECT DDL ORDER FOR DROP INDEX/DROP PRIMARY KEY WHEN USING MASK TO RENAME TABLE NAME

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Object Comparison Tool generates the CHG DDL statements in the
    wrong order when DROPPING a PRIMARY KEY from a TABLE when a MASK
    is used to rename the TABLE.
    DROP INDEX is executed before ALTER TABLE...DROP PRIMARY KEY,
    which results in SQLCODE = -669, ERROR: THE OBJECT CANNOT BE
    EXPLICITLY DROPPED.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Administration Tool for z/OS    *
    *                 and Db2 Object Comparison Tool for z/OS      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Object Comparison Tool generates        *
    *                      statements in the incorrect order when  *
    *                      renaming a table and dropping the table *
    *                      primary key.                            *
    ****************************************************************
    When processing the rename of a table and the drop of its
    primary key, Object Comparison Tool generates DROP INDEX
    before DROP PRIMARY KEY, resulting in SQLCODE -669.
    SQLCODE = -669, ERROR:  THE OBJECT CANNOT BE EXPLICITLY DROPPED.
    

Problem conclusion

  • The problems have been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH69942

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2026-02-02

  • Closed date

    2026-05-04

  • Last modified date

    2026-06-01

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

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

    UO07685

Modules/Macros

  • ADB2CMR
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RD10 PSY UO07685

       UP26/05/07 P F605

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

Document Information

Modified date:
01 June 2026