home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC85847 Status: Closed

SQL0843N DURING CONNECT JUST AFTER DISCONNECT USING SAME CONNECTION HANDLE
WHEN CLIENT INFO PROPERTIES ARE SET

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
When Client info properties are set on client side using 
db2dsdriver.cfg/db2cli.ini/connection string, SQL0843N occurs 
when connecting again using same connection handle just after 
disconnect. 
 
We can see the error in cli trace as below: 
SQLDisconnect( hDbc=0:1 ) 
    ---> Time elapsed - +7.100000E-005 seconds 
( Unretrieved error message="[IBM][CLI Driver] CLI0106E 
Connection is closed. SQLSTATE=08003" ) 
 
SQLDisconnect( ) 
    <--- SQL_ERROR   Time elapsed - +5.100000E-005 seconds 
 
SQLConnect( hDbc=0:1, szDSN="DSNI1", cbDSN=-3, szUID="lgb0200", 
cbUID=-3, szAuthStr="*******", cbAuthStr=-3 ) 
    ---> Time elapsed - +4.900000E-005 seconds 
( Unretrieved error message="[IBM][CLI Driver] CLI0106E 
Connection is closed. SQLSTATE=08003" ) 
 
SQLConnect( ) 
    <--- SQL_ERROR   Time elapsed - +4.080000E-004 seconds 
 
SQLGetDiagRec( fHandleType=SQL_HANDLE_DBC, hHandle=0:1, 
iRecNumber=1, pszSqlState=&04b41f3c, pfNativeError=&04b41f30, 
pszErrorMsg=&04b41f4c, cbErrorMsgMax=1025, pcbErrorMsg=&04b41f24 
) 
    ---> Time elapsed - +4.400000E-005 seconds 
( iRowNumber=-2, iColumnNumber=-2 ) 
 
SQLGetDiagRec( pszSqlState="08003", pfNativeError=-843, 
pszErrorMsg="[IBM][CLI Driver] SQL0843N  The server name does 
not specify an existing connection.  SQLSTATE=08003^M 
", pcbErrorMsg=102 ) 
    <--- SQL_SUCCESS   Time elapsed - +8.800000E-005 seconds
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to db2_v101fp1 or later.                             * 
****************************************************************
Local Fix:
NA
available fix packs:
DB2 Version 10.1 Fix Pack 1 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
Fixed in db2_v101fp1. 
SQL0843N will not occur when using same connection handle to 
connect after disconnect if client info properties are set.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
13.08.2012
31.10.2012
31.10.2012
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.1 FixList
10.5.0.1 FixList