IBM Support

IT37436: DATABASE CREATE FAILS WITH SQL2049N RC=2 WHEN DB2_DATABASE_CF_MEMORY BEING SET TO 0

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Customer observed SQL2049N rc=2 when setting
    DB2_DATABASE_CF_MEMORY  equal to 0.
    
    As per the documentation link below, the expected behavior when
    DB2_DATABASE_CF_MEMORY is set to 0, and cf_db_mem_sz is set to
    automatic is that the database should be created with the
    smallest possible size of 32,768 4K pages.
    
    https://www.ibm.com/docs/en/db2/11.5?topic=configuration-cf-memo
    ry-parameter
    
    Instead what we see is the SCA is assigned a value of ~800GB,
    which on most systems will lead to SQL2049N rc=2
    
    021-05-27-18.22.28.304184-240 E138651E1289          LEVEL:
    Severe
    PID     : 16415                TID : 140580524910336 PROC :
    db2sysc 0
    INSTANCE: db2inst1               NODE : 000            DB   :
    SAMPLE
    APPHDL  : 0-59                 APPID: *N0.db2inst1.210527222227
    AUTHID  : DB2INST1               HOSTNAME: localhost
    EDUID   : 31                   EDUNAME: db2agnts 0
    FUNCTION: DB2 UDB, Shared Data Structure Abstraction Layer for
    CF, SAL_MANAGEMENT_PORT_HANDLE::SAL_ManagementAllocateOneStruct,
    probe:7974
    MESSAGE : CA RC= 2147879427
    DATA #1 : String, 61 bytes
    CF structure allocation exception (structType,target_sz,SID):
    DATA #2 : SAL Structure Type, PD_TYPE_SAL_STRUCT_TYPE, 8 bytes
    Structure type 2 : sca
    DATA #3 : unsigned integer, 4 bytes
    204256256
    

Local fix

  • Unset DB2_DATABASE_CF_MEMORY, restart the pureScale instance.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to 11.1 FP7 or later                                 *
    ****************************************************************
    

Problem conclusion

  • Upgrade to 11.1 FP7 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT37436

  • 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

    2021-06-28

  • Closed date

    2021-11-23

  • Last modified date

    2021-11-23

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

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

    IT39233

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