IBM Support

IT04077: SQLERRD REPORTS -1 AT SQLCA UNEXPECTEDLY UNDER CODE CONVERSION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Problem Reproducible steps:
    1. Set client/application codepage to 1386
       $ db2set DB2CODEPAGE=1386
    2. Connect to a database in UTF-8 and get returned SQLCA
       $ db2 -a "connect to utf8"
       ==>> will report -1 at sqlerrd (2) as below:
    -----
    SQLCA Information
    
     sqlcaid : SQLCA     sqlcabc: 136   sqlcode: 0   sqlerrml: 50
     sqlerrmc: 86 1208 CHENSR   UTF8 QDB2/LINUXX8664 7 7 0 1386 0
     sqlerrp : SQL0905B
     sqlerrd : (1) 3                (2) -1               (3) 0
               (4) 1                (5) 1                (6) 0
     sqlwarn : (1)      (2)      (3)      (4)        (5)       (6)
               (7)      (8)      (9)      (10)       (11)
     sqlstate: 00000
    -----
    
    Symptom:
    sqlerrd reports -1 in SQLCA unexpectedly under code conversion
    environment
    
    Root cause:
    DB2 incorrectly assign -1.
    
    Condition of problem:
    Only code conversion environment.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 UDB Version 9.7                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Version 9.7 FixPack 11.                           *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 UDB Version 9.7 FixPack 11.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT04077

  • 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

    2014-08-28

  • Closed date

    2015-10-07

  • Last modified date

    2015-10-07

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

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

    IT05452 IT06574

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

Modified date: 07 October 2015