IBM Support

IC78342: GET SNAPSHOT FOR ALL GLOBAL COMMAND FAILS WITH SQL0804N WHEN A LARGE BUFFER IS USED

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When a buffer bigger than 2Gb is supplied to a db2GetSnapshot()
    call, or if the CLP GET SNAPSHOT uses a buffer bigger than 2Gb,
    the snapshot will fail with SQL0804N, for example:
    
    SQL0804N  The application program parameters for the current
    request are not
    valid.  Reason code "103".  If a host variable or SQLVAR in the
    SQLDA is
    invalid then:  host variable/SQLVAR number = "10", SQLTYPE =
    "405", SQLLEN =
    "-1968825559", host variable/SQLVAR type = "INPUT".
    SQLSTATE=07002
    

Local fix

  • Use a snapshot output buffer that is at most 2Gb - 512 bytes in
    size
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Anybody using large output buffers with snapshots            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See the Error Description.                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Version 9.7 Fix Pack 6                            *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 9.7 Fix Pack 6
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC78342

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-26

  • Closed date

    2012-05-09

  • Last modified date

    2012-05-09

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

  • 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

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC78342

Modified date: 09 May 2012