IBM Support

PI31343: DB2 ADMIN TOOLS SQLCODE -20180 DURING CHANGE OF RESTART WITH VALUE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When increasing the RESTART with -value with the aid of a
    change, during RUN Job, the following error occurs:
      SQLCODE = -20180, ERROR:  COLUMN ID IN TABLE DB.TTEMPBASE
                CAN NOT BE ALTERED AS SPECIFIED
    
    because  ALTER TABLE xxx DROP VERSIONING;
    and  ALTER TABLE xxx ADD VERSIONING ...
    are missing.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS and DB2 Object Comparison Tool for      *
    *                 z/OS who alter the RESTART value of an       *
    *                 identity column in a temporal table.         *
    ****************************************************************
    * PROBLEM DESCRIPTION: The Compare function generates DDL      *
    *                      statements to alter the RESTART value   *
    *                      of an identity column in a temporal     *
    *                      table without dropping versioning       *
    *                      and adding versioning after the Alter.  *
    *                      Upon executing the APPLY jobs and       *
    *                      Work Statement List ( WSL ), a          *
    *                      SQLCODEN20180 / SQLCODE=-20180 failure  *
    *                      is observed:                            *
    *                                                              *
    *                      DSNT408I SQLCODE = -20180,              *
    *                      ERROR:  COLUMN >colname<                *
    *                      IN TABLE >tablename< CAN NOT            *
    *                      BE ALTERED AS SPECIFIED.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When altering the RESTART value of an identity column in a
    temporal table, the correct process is to perform a drop of the
    versioning using the DROP VERSIONING statement, then alter the
    RESTART value of the identity column and use the ADD
    VERSIONING statement to add the versioning after the Alter is
    completed.
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI31343

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    A20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-12-11

  • Closed date

    2015-04-15

  • Last modified date

    2015-05-04

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

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

Modules/Macros

  •    ADB2CMT
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA20 PSY UI26783

       UP15/04/20 P F504

  • RB10 PSY UI26784

       UP15/04/20 P F504

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.

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.2.0"}]

Document Information

Modified date:
30 March 2021