IBM Support

PM47082: MQT ATTRIBUTE NOT RETAINED WHEN CREATE TABLE / ALTER TABLE ADD MATERIALIZED QUERY DDL USED.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Object Comparison Tool for z/OS does not LOAD or
    REFRESH a MATERIALIZED QUERY TABLE effected by a change.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool      *
    *                 for z/OS who use Materialized Query Tables   *
    *                 ( MQT ).                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: The DB2 Object Comparison Tool does     *
    *                      not include the comparison of columns,  *
    *                      UNLOAD/RELOAD, and the refresh of       *
    *                      materialized query tables.              *
    *                                                              *
    *                      The function regarding MQT objects to   *
    *                      be refreshed when they are built or     *
    *                      rebuilt has been added. Previously, a   *
    *                      MQT object would need to be refreshed   *
    *                      outside of the product. Now, there      *
    *                      will be a SQL REFRESH command that      *
    *                      needs to follow the LOAD.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The DB2 Object Comparison Tool has been changed to compare the
    columns of MQTs and report differences.  It will UNLOAD the
    records of a user managed MQT and RELOAD the records if the
    new table is a user managed MQT.  If the new table is a
    system managed MQT, the records of the user managed MQT will
    be unloaded only.  The system managed MQT will be refreshed.
    

Problem conclusion

  • MQT support has been expanded.
    Note: If a MQT will be refreshed, the CHECK and COPY utilities
    must be selected. If not, a SQLCODEN904/SQLCODE=-904 will
    occur.
    
    The necessary REFRESH statements for new or changed MQT objects
    will now be generated in DB2 Object Compare.  The point in the
    APPLY process where this is done is immediately before the
    RUNSTATS (if RUNSTATS is requested).  If JCL is generated,
    the statements are put into their own data set as the ALTER,
    CREATE and DROP statements are currently.  A new template
    (GOCREFRN) under the DB2 Object Compare category will
    allow users to control this data set name.  Also, the
    RESTART instructions will instruct users on how to restart
    from a failure in this new REFRESH step.  If multiple JCL
    jobs are generated, the refresh is contained in a new
    separate job.  When generating JCL to separate jobs, the
    numbering of the RUNSTATS job has been changed to be
    prefaced T87 instead of T82 and the new REFRESH job is
    prefaced with T85.  For Work Statement Lists ( WSL ), the
    REFRESH statements will immediately precede the RUNSTATS
    (if present).
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM47082

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-09-02

  • Closed date

    2011-10-08

  • Last modified date

    2011-11-02

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

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

    UK72753 UK72754

Modules/Macros

  •    GOCGAJOB GOCGCMP
    

Fix information

  • Fixed component name

    DB2 OBJECT COMP

  • Fixed component ID

    5697G6400

Applicable component levels

  • RA10 PSY UK72753

       UP11/10/13 P F110

  • R720 PSY UK72754

       UP11/10/12 P F110

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":"SSAUVH","label":"IBM Db2 Object Comparison Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021