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 IC81074 Status: Closed

DB2 SNAPSHOT MONITOR MAY RETURN SQL1042C ERROR WHEN THERE ARE INDOUBT
TRANSACTIONS

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
When there are indoubt transactions, db2 get snapshot for locks 
on <db2_name> may receive sql1042c error. 
 
E.g. 
 
$ db2 get snapshot for locks on sample 
SQL1042C  An unexpected system error occurred.  SQLSTATE=58004 
 
 
The following records could be found in db2 trace: 
 
| | | | | | | | | sqm___sqm_snap_db_locks entry [eduid 80577 
eduname db2agent] 
| | | | | | | | | | sqlpm_write_locks_indoubt_tran entry [eduid 
80577 eduname db2agent] 
| | | | | | | | | | | sqlpm_write_locks entry [eduid 80577 
eduname db2agent] 
| | | | | | | | | | | | pdLogPrintf entry [eduid 80577 eduname 
db2agent] 
| | | | | | | | | | | | | pdIsDiagLevelOk entry [eduid 80577 
eduname db2agent] 
| | | | | | | | | | | | | pdIsDiagLevelOk data [probe 10] 
| | | | | | | | | | | | | pdIsDiagLevelOk data [probe 20] 
| | | | | | | | | | | | | pdIsDiagLevelOk data [probe 500] 
| | | | | | | | | | | | | pdIsDiagLevelOk exit 
| | | | | | | | | | | sqlpm_write_locks data [probe 55] 
| | | | | | | | | | | | pdLogPrintf exit 
| | | | | | | | | | | sqlpm_write_locks exit [rc =0x000004E2 = 
1250] 
 
 
diag.log shows: 
 
2012-01-25-11.22.21.035956-300 E853625A479        LEVEL: Info 
PID     : 2687188              TID  : 89596       PROC : db2sysc 
0 
INSTANCE:              NODE : 000 
APPHDL  : 0-1403               APPID: 
AUTHID  : 
EDUID   : 89596                EDUNAME: db2agent (instance) 0 
FUNCTION: DB2 UDB, lock manager, sqlpm_write_locks, probe:55 
DATA #1 : <preformatted> 
Transaction changed underneath sqlpm_write_locks. 
tidhdl=2, tentryState=7 
 
2012-01-25-11.22.21.036274-300 I854105A798        LEVEL: Info 
PID     : 2687188              TID  : 89596       PROC : db2sysc 
0 
INSTANCE:                      NODE : 000 
APPHDL  : 0-1403               APPID: 
AUTHID  : 
EDUID   : 89596                EDUNAME: db2agent (instance) 0 
FUNCTION: DB2 UDB, oper system services, sqlofica, probe:10 
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes 
 sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -1042   sqlerrml: 0 
 sqlerrmc: 
 sqlerrp : SQLMSSAG 
 sqlerrd : (1) 0x00000000      (2) 0x00000000      (3) 
0x00000000 
           (4) 0x00000000      (5) 0x00000000      (6) 
0x00000040 
 sqlwarn : (1)      (2)      (3)      (4)        (5)       (6) 
           (7)      (8)      (9)      (10)        (11) 
 sqlstate: 58004
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2 for Linux, UNIX and Windows                              * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 9.7 fixpack 6                                 * 
****************************************************************
Local Fix:
using db2pd -locks -db <db_name> to collect lock information
available fix packs:
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC84336 IC84737 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
27.01.2012
06.06.2012
06.06.2012
Problem solved at the following versions (IBM BugInfos)
9.7.FP6
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.6 FixList