IBM Support

IT28001: "ALTER SEQUENCE SEQUANCE_NAME RESTART WITH" - STATEMENT IN DB2LOOK OUTPUT HAS INCORRECT VALUES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DDL for sequence (db2look.mimic_sequence.sql)
    
    CREATE SEQUENCE "MYSEQ" AS BIGINT
            MINVALUE 100000000000000000 MAXVALUE 199999999999999999
            START WITH 100000000000000000 INCREMENT BY 1
            NO CACHE CYCLE NO ORDER;
    
    ALTER SEQUENCE "MYSEQ" RESTART WITH
    100000000000522496;
    
    
    
    Steps to reproduce this problem :
    
    db2 "ALTER SEQUENCE "MYSEQ" RESTART WITH
    10000000000555555"
    
    $ db2look -d sample -e | grep 'ALTER SEQUENCE'
    ..
    ALTER SEQUENCE  "MYSEQ" RESTART WITH
    10000000000555556;
    ---
    $ db2 "ALTER SEQUENCE "MYSEQ" RESTART WITH
    10000000000333333"
    
    
    $ db2look -d sample -e | grep 'ALTER SEQUENCE'
    
    ALTER SEQUENCE "MYSEQ" RESTART WITH
    10000000000333332;
    ..
    
    Db2look is not handling DECIMAL(31,0) datatype properly. When
    the sequence is too large, calculations are done incorrectly,
    and precision is lost.
    

Local fix

  • Use sequences up to 15 digits max.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 Mod 4 Fixpack 5 or higher                *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1 Mod 4 Fixpack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT28001

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-02-06

  • Closed date

    2020-01-16

  • Last modified date

    2020-01-16

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022