IBM Support

IC82543: INSERTING DATA INTO VARCHAR COLUMN, FAILS IN CLI DRIVER WITH CLI0109E ON THE UNICODE CODESET CLIENT

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • If a multi-byte code string is inserted into VARCHAR data type
    column through a parameter marker like below on the unicode
    codeset client, it fails in CLI layer with "CLI0109E String data
    right truncation" error when the database codeset is different
    from the client.
    
      Currently this fix requires "Patch2=82" in db2cli.ini and it
    can be made by a "UPDATE CLI CFG" command like below.
        UPDATE CLI CFG FOR SECTION COMMON USING Patch2 82
    
      Sample SQL :
        INSERT INTO T1(COL_VARCHAR) VALUES(?);
    
      CLI error message :
        (-99999): [IBM][CLI Driver] CLI0109E  String data right
    truncation.
    
      And db2trc shows the following SQLZ_RC_STRING_TRUNCATED error
    return code in CLI_callbDrdaInput.
    
    476690 ... | sqljrGenSqlDta data [probe 10]
    476691 ... | | CLI_callbDrdaInput entry
    476692 ... | | | sqljrDrdaArGetWriteBufferPtr entry
    476693 ... | | | sqljrDrdaArGetWriteBufferPtr data [probe 10]
    476694 ... | | | sqljrDrdaArGetWriteBufferPtr exit
    476695 ... | | CLI_callbDrdaInput data [probe 100]
    476696 ... | | | CLI_errStoreError entry
    476697 ... | | | CLI_errStoreError data [probe 999]
    476698 ... | | | CLI_errStoreError exit
    476699 ... | | | unknown error [probe 164] [ ZRC = 0x8800000A =
    -2013265910 = SQLZ_RC_STRING_TRUNCATED]
    

Local fix

  • Use the same codeset on the client as the database codeset.
      ex, export DB2CODEPAGE=< database codepage > and recycle the
    application
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * CLI user on connecting to the different codepage database    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to db2 Version 9.7 FixPak 7                          *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 9.7 FixPak 7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC82543

  • 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

    2012-04-06

  • Closed date

    2012-10-24

  • Last modified date

    2012-10-24

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

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

    IC88304

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 #: IC82543

Modified date: 24 October 2012