IBM Support

PM35568: SQLCODEN204 AS CREATE MQT OCCURRED AFTER CREATE VIEW

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Administration Tool for z/OS created out of sequence
    DDL for dependent objects such that a CREATE VIEW which
    is dependent on a MQT table occurs before the CREATE TABLE
    for the MQT.
    Should the SQL be executed it fails with a SQLCODE -204
    SQLCODEN204.
    

Local fix

  • Manually reorder the DDL.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool for  *
    *                 z/OS who compares source and target with     *
    *                 view and Materialized Query Table (MQT).     *
    ****************************************************************
    * PROBLEM DESCRIPTION: The execution of a worklist failed      *
    *                      because a VIEW is created before        *
    *                      the needed MQT table (which is created  *
    *                      later in the WSL) is created.  When     *
    *                      executing the apply JCL or WSL, the     *
    *                      user will receive a                     *
    *                                                              *
    *                      SQLCODE= -204/ SQLCODEN204              *
    *                      ERROR:  mqt_name IS AN                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    To correctly address this issue, the DB2 Object Comparison Tool
    should generate the correct DROP/CREATE sequences for the
    affected VIEW and MQT.
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM35568

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-24

  • Closed date

    2011-06-07

  • Last modified date

    2011-07-05

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

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

Modules/Macros

  •    ADB2CMP
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK68551

       UP11/06/10 P F106

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

Document Information

Modified date:
05 July 2011