IBM Support

PH26602: OBJECT COMPARE DROP COLUMN TABLE WITH TRIGGER ADB7192I ALTER TABLE DROP COLUMN RESTRICT STATEMENT REASON CODE 1

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If a column is to be dropped from a table with a trigger, Object
    Compare attempts to ALTER the table before dropping the trigger.
    This results in the following message:
    
    ADB7192I  ALTER TABLE DROP COLUMN RESTRICT statement cannot be
    generated for table >table_name<.  Reason code 1..
    
    Reason code 1 indicates that there are triggers defined on the
    table (https://ibm.biz/BdqeDa)
    
    
    With this fix applied, Object Compare will drop the trigger
    first, execute the ALTER TABLE DROP COLUMN statement, and then
    recreate the trigger.
    
    
    Keywords: msgadb7192I
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the Db2 Object Comparison Tool for  *
    *                 z/OS.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: Object Compare performs a DROP/CREATE   *
    *                      of the entire tablespace to drop a      *
    *                      column of a table with a trigger.       *
    ****************************************************************
    Due to a restriction on ALTER of a table for dropping columns,
    Object Comparison tool takes the approach of DROP/CREATE of
    the entire tablespace instead of dropping the trigger, dropping
    the column, and recreating the trigger.
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH26602

  • 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

    2020-06-19

  • Closed date

    2020-09-08

  • Last modified date

    2020-10-02

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

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

    UI71455

Modules/Macros

  • ADB2CMR  ADB2CMS  ADB2CMT  ADB2CMU
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI71455

       UP20/10/01 P F009

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.

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0"}]

Document Information

Modified date:
12 February 2021