IBM Support

IT19152: CALLING DBMS_SQL ROUTINES CAN LEAK MEMORY BLOCKS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The condition to hit this issue, is to have the same DBMS_SQL
    call (like: open, fetch, ...) being called more than once. Once
    the problem happens, we can observe symptoms in output of the
    commands:
    
    DB2_PID=$(db2pd -edu | grep "db2sysc PID" | awk '{print $3}')
    
    db2pd -memblocks pid=$DB2_PID > memblock
    
    In case occurrence of this issue, in the output we will see many
    memory locations with following signature:
    
    Address            DataAddress        PoolID     PoolName
    BlkAge Size(Bytes)  I LOC   File
    0x0000000110390068 0x0000000110390080 0                       1
    504          1 150   2878669185
    
    Please note that line number (LOC) might change between
    fixpacks/releases, however we should still report extensive
    usage on the file 2878669185 itself.
    

Local fix

  • Avoid using leaking DBMS_SQL calls.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 11.1 Mod 2 Fix Pack 2 or higher               *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 11.1 Mod 2 Fix Pack 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT19152

  • 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

    2017-02-07

  • Closed date

    2017-06-23

  • Last modified date

    2017-06-23

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

    IT19008

  • 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

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"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:
29 June 2020