IBM Support

IT30061: DB2 TAKES Z LOCK WHEN ATTACHING PARTITION TO TABLE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Command such as
    ALTER TABLE MYSCHEMA.TESTTABLE ATTACH PARTITION
    STARTING('2018-01-25') ENDING('2018-01-25') FROM
    MYSCHEMA.TESTTABLE1
    
    May result in.
    DB21034E The command was processed as an SQL statement because
    it was not a
    valid Command Line Processor command. During SQL processing it
    returned:
    SQL0911N The current transaction has been rolled back because of
    a deadlock
    or timeout. Reason code "68". SQLSTATE=40001
    
    This may due to a z lock that should not be acquired during the
    process. This can happen when a table has columns with default
    values that is being attached to the partition table with
    different default values. This triggers an ALTER TABLE under the
    covers that acquires the z-lock and conflicts with the lock held
    by the attach partition.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.5 Mod 2 Fixpack 0 or higher                *
    ****************************************************************
    

Problem conclusion

  • Upgrade to Db2 11.5 Mod 2 Fixpack 0 or higher
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT30061

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-22

  • Closed date

    2020-02-18

  • Last modified date

    2020-02-18

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

    IT26394

  • 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

  • RB50 PSN

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.5"}]

Document Information

Modified date:
15 September 2021