IBM Support

PI52967: TRANSACTION GETS SQLCODE -904 WITH ZPARM RETLWAIT = 1

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In DB2 data sharing environment.
    ZPARM RETLWAIT=1 (RETAINED LOCK TIMEOUT) is set.
    As the 'retained lock timeout' zparm is set, it's expected that
    a transaction waits until an incompatible retained lock is
    purged, or timed out when the member holding the lock is
    abnormally terminated.
    However some transactions don't wait for the retained lock and
    fail immediately with sqlcode -904 . Sqlcode -911 is expected
    instead.
    Example of -904 from the scenario. Index access required.
    DSNT408I SQLCODE = -904,
            ERROR:  UNSUCCESSFUL EXECUTION CAUSED BY AN
            UNAVAILABLE RESOURCE. REASON 00C900BE, TYPE OF RESOURCE
            00000304, AND RESOURCE NAME
            xxxDB   .xxxxTS  .X'00000002'.X'01'
                                                                   .
    Additional keywords: rc00c900be
                         srcn904
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All DB2 10 for z/OS and DB2 11 for z/OS      *
    *                 users using indexes.                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: Unexpected SQLCODE904 issued for SELECT *
    *                      statement using index access.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Unexpected SQLCODE904 issued for SELECT statement that failed
    to detect retained lock held by a subsystem that was down and
    retained lock timeout field (RETLWAIT) had non-zero value.
    
    Additional Keywords: SQLLOCK, SQLCODE904, SQLCODE911
    

Problem conclusion

  • DB2 has been modified to honor retained lock timeout
    field (RETLWAIT).
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI52967

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-11-23

  • Closed date

    2016-01-29

  • Last modified date

    2016-03-02

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

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

    UI34908 UI34909

Modules/Macros

  • DSNKFLRR DSNKFLST DSNKFPRV DSNKFTCH DSNKFTRR
    DSNKNXT2
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UI34908

       UP16/02/16 P F602

  • RB10 PSY UI34909

       UP16/02/16 P F602

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":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 March 2016