IBM Support

PH00805: DB2 ADMIN TOOL - AFTER AN ALT, WSL NOT GENERATING MQT OR VIEWS ON MQT OR SQLCODE -750

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Two issues:
    Issue #1: After Alter the name of a column, the MQT is not
              Dropped and only the Alter Statement is generated
              causing a SQL Code -750 / SQLCODEN750
    
    Note: MQT is referencing altered table by the alias name not
          the actual table name.
    
    Issue #2: Table altered, the Tool did not recreate the MQT
              views or the Grants associated with the MQT views.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the Db2 Administration Tool for     *
    *                 z/OS and the Db2 Object Comparison Tool for  *
    *                 z/OS who alter and rename columns in a table *
    *                 which is referenced in MQT via alias name.   *
    *                 The MQT has VIEWS and Grants. Also users of  *
    *                 CM Batch facility who use import.            *
    ****************************************************************
    * PROBLEM DESCRIPTION: There are 3 problems reported:          *
    *                                                              *
    *                      1- Renaming a column in a table         *
    *                         referenced by a MQT that uses        *
    *                         the alias of a table may create      *
    *                         a WSL that returns SQLCODE = -750    *
    *                         / SQLCODEN750.                       *
    *                                                              *
    *                      2- Altering column attribute in table   *
    *                         referenced by MQT that uses the      *
    *                         alias of a table which has VIEWS     *
    *                         and Grants, some CREATE VIEW and     *
    *                         GRANT statement may be missing.      *
    *                                                              *
    *                      3- Import step fails with the message:  *
    *                         ADB7350E Module : ADB2CMP detected   *
    *                         an ONCODE condition 520 in           *
    *                          RESOLVE_VIEWS ...                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    There are 3 problems reported:
    
    1- If a column is renamed in a table referenced by MQT via alias
       name compare does not generate DROP and CREATE statements for
       the MQT. Execution leads to SQLCODE = -750
    
    2- When altering column attribute in table referenced by MQT
        that uses the alias of a table
       which has VIEWS and Grants compare generates the alter, the
       unload of the base table, drop of dependent objects and
       recreates only MQTs and first view. The second view and its
       GRANTs are missing.
    
    3- If a view is dropped and re-created in the same script, the
       import step fails with the message:
    
       ADB7350E Module : ADB2CMP detected an ONCODE condition 520
       in RESOLVE_VIEWS at 7610.
    
     Note: Statement numbers are approximate, and may vary
     somewhat, depending on maintenance applied.
    

Problem conclusion

  • Problems have been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH00805

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    B20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-07-24

  • Closed date

    2018-10-05

  • Last modified date

    2018-11-01

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

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

Modules/Macros

  •    ADBCCMM  ADB2CMO  ADB2CMP  ADB2CMT  ADB2CMU
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RB20 PSY UI58928

       UP18/10/12 P F810

  • RC10 PSY UI58929

       UP18/10/12 P F810

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:
01 November 2018