IBM Support

PH19028: CM BATCH OBJECT COMPARE DROP CREATE TEMPORAL TABLE DUPLICATE ALTER TABLE DROP VERSIONING ADB7955E SQLCODE -20525

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If a change involves the drop and create of a temporal table
    and history table, the ALTER TABLE...DROP VERSIONING command may
    appear twice in the WSL.  When the WSL is executed, the
    duplicate ALTER statement may cause the following
    SQLCODE = -20525 / sqlcoden20525 error to result:
    
    ADB7955E ADBTEP2   DSNT408I SQLCODE = -20525, ERROR:  THE
    REQUESTED ACTION IS NOT VALID FOR TABLE >tablename<
    BECAUSE THE TABLE IS THE WRONG KIND OF TABLE
    
    
    
    
    
    
    
    
    Keywords:  msgadb7955E
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Object Comparison Tool for Z/OS *
    *                 who compare and analyze changes for temporal *
    *                 and history tables.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: When a change involves the drop         *
    *                      and create of a temporal table, the     *
    *                      WSL may contain a duplicate ALTER       *
    *                      TABLE DROP VERSIONING                   *
    *                      statement, resulting in a SQLCODE       *
    *                      -20525 error when executed.             *
    ****************************************************************
    In a scenario involving the drop and create of a temporal table,
    Object Compare does not check to see if versioning
    had already been dropped. As a result, Compare may
    generate a WSL containing a duplicate ALTER TABLE DROP
    VERSIONING statement. When the WSL is executed, a
    SQLCODE -20525 error may result:
    
    ADB7955E ADBTEP2 DSNT408I SQLCODE = -20525, ERROR: THE
    REQUESTED ACTION IS NOT VALID FOR TABLE >tablename<
    BECAUSE THE TABLE IS THE WRONG KIND OF TABLE
    
    This fix adds a 'versioning dropped' check to prevent a
    duplicate ALTER TABLE DROP VERSIONING statement from being
    generated.
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH19028

  • 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

    2019-11-11

  • Closed date

    2020-01-28

  • Last modified date

    2020-02-04

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

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

Modules/Macros

  • ADB2CM3  ADB2CME  ADB2CMF  ADB2CMO  ADB2CMP  ADB2CMR  ADB2CMS
    ADB2CMT  ADB2CMU  ADB2REG  ADB2REM  ADB2REP  ADB2RGC
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI67601

       UP20/01/30 P F001

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

Document Information

Modified date:
04 February 2020