IBM Support

PH34101: DB2 ADMIN TOOL: PENDING CHANGE NOT HANDLED BY REORG BEFORE ALTERTABLE IS EXECUTED. SQLCODE -20385

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Db2 Admin Tool: Pending change not handled by reorg before ALTER
    TABLE is executed.  SQLCODE -20385
    
    For example
    
    An alter to change a bufferpool may create a pending change.
    If there is a subsequent change to the object, before a
    REORG, ALTER TABLE ADD VERSIONING for example, an SQLCODE -20385
    may occur.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Object Comparison Tool for z/OS *
    *                 who add table versioning and alter the index *
    *                 buffer pools in the same change.             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Running a change to alter an index      *
    *                      buffer pool size and add versioning     *
    *                      to a related table results in           *
    *                      SQLCODE -20385. This is a result of     *
    *                      Object Compare generating the REORG     *
    *                      operation at the end of the WSL instead *
    *                      of inline, after the ALTER INDEX        *
    *                      BUFFERPOOL statement.                   *
    ****************************************************************
    When a change includes both altering indexes to change the
    buffer pool size and adding versioning to a table in the same
    affected table space, the REORG operation for the index is
    mistakenly run after the table is altered. This sequence of
    actions leaves the table space in a REORG-pending state. As a
    result, running the change fails on the ALTER TABLE ADD
    VERSIONING statement with the following error:
    
    ADB7955E SQL error: ADB7955E DSNT408I SQLCODE = -20385,
    ERROR: THE STATEMENT CANNOT BE PROCESSED BECAUSE ADB7955E THERE
    ARE PENDING DEFINITION CHANGES FOR OBJECT <dbname>.<tsname> OF
    ADB7955E TYPE TABLESPACE (REASON 2)
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH34101

  • 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

    2021-02-03

  • Closed date

    2021-04-26

  • Last modified date

    2021-05-03

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

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

    UI75094

Modules/Macros

  • ADB2CM2  ADB2CM3  ADB2CME  ADB2CMF  ADB2CMO  ADB2CMP  ADB2CMR
    ADB2CMS  ADB2CMT  ADB2CMU
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI75094

       UP21/04/28 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.

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

Document Information

Modified date:
04 May 2021