IBM Support

PI16907: DB2 ADMINISTRATION TOOL FOR Z/OS DURING CM RUN GENERATES SQLCODE-672 ON HISTORY TABLES WITH RESTRICT ON DROP

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 DURING CM RUN generates
    SQLCODE -672 on history tables WITH RESTRICT ON DROP :
    DSNT408I SQLCODE = -672, ERROR:  OPERATION DROP NOT ALLOWED ON
    TABLE
    (sqlcoden672  sqlcode = -672 )
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS who drop a database that contains a     *
    *                 temporal table and its associated history    *
    *                 table has WITH RESTRICT ON DROP defined on   *
    *                 it using the Change Management function.     *
    ****************************************************************
    * PROBLEM DESCRIPTION: When dropping a database via CM         *
    *                      function, and the database contains     *
    *                      a temporal table and its associated     *
    *                      history table has WITH RESTRICT ON      *
    *                      DROP defined on it,  only the DROP      *
    *                      DATABASE statement was generated        *
    *                      in the CM change file which caused      *
    *                      a SQLCODE = -672 / SQLCODEN672          *
    *                      SQLCODEN672 to be executed:             *
    *                                                              *
    *                      SQLCODE = -672, ERROR:                  *
    *                      OPERATION                               *
    *                      DROP NOT ALLOWED ON                     *
    *                      TABLE table_name.                       *
    *                      DSNT418I SQLSTATE = 55035               *
    *                      SQLSTATE RETURN CODE                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The database can not be dropped if it contains tables defined
    with the RESTRICT ON DROP attribute.
    

Problem conclusion

  • Problem has been resolved. The ALTER TABLE statement with DROP
    RESTRICT ON DROP clause will be generated to remove the
    restrictions before the DROP DATABASE statement in the change
    file.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI16907

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    A20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-04-28

  • Closed date

    2014-08-14

  • Last modified date

    2014-09-03

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

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

Modules/Macros

  •    ADB2CMR  ADB2DIP  ADB2DIPD ADB26DD
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA20 PSY UI20537

       UP14/08/20 P F408

  • RB10 PSY UI20538

       UP14/08/20 P F408

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

Document Information

Modified date:
03 September 2014