IBM Support

IT26394: DB2 TAKES Z LOCK WHEN ATTACHING PARTITION TO TABLE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

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 version 11.1 M4FP5                                *
    ****************************************************************
    

Problem conclusion

  • First fixed in version 11.1 M4FP5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT26394

  • 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

    2018-09-24

  • Closed date

    2019-08-22

  • Last modified date

    2019-08-22

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

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

    IT30061

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 August 2019