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

WITH INFINITE LOGGING, AFTER FAILED LOG ARCHIVAL, TRANSACTION MIGHT GET
STUCK DUE TO MAXIMUM ALLOWABLE UNARCHIVED LOG

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
With infinite logging enabled, in environments where new
transactional log files are produced very often, active
transactions might get stuck waiting for new logs to be
allocated.

For problem to occur following conditions must be true:
1. Infinite logging must be enabled (LOGSECOND -1)
2. New logs have to be produced more often than ARCHRETRYDELAY
database parameter is set. Usually this is the case when
LOGFILSIZ is set to very low value.
3. There is a transaction that spans across more than 256 logs
4. In the past there was a failed log archival.

Before problem occurs, multiple errors about failed FAILARCHPATH
cleanup will be logged, e.g:

2014-12-17-15.44.03.984770+060 E11404703E482         LEVEL:
Warning
PID     : 4626                 TID : 46912937912064  PROC :
db2sysc 0
INSTANCE: db2inst1             NODE : 000            DB   :
SAMPLE
HOSTNAME: db2host
EDUID   : 37                   EDUNAME: db2logmgr (SAMPLE) 0
FUNCTION: DB2 UDB, data protection services,
sqlpgCleanFailArchPath, probe:4920
DATA #1 : 
Unable to find log file 339345 for LOGARCHMETH1.  Assume log was
archived and continue.


As the result following message will be logged in db2diag.log:

2015-01-07-04.10.49.832799+060 E3366782E519          LEVEL:
Warning
PID     : 17323                TID : 46912874997504  PROC :
db2sysc 0
INSTANCE: db2inst1             NODE : 000            DB   :
SAMPLE
HOSTNAME: db2host
EDUID   : 62                   EDUNAME: db2loggr (SAMPLE) 0
FUNCTION: DB2 UDB, data protection services, sqlpgadf, probe:540
DATA #1 : 
Maximum allowable unarchived log files reached.
DB2 will continue to reissue archive requests.
Check that log archiving is working properly.

despite the fact that currently log archival is working
properly.
Active transaction will get stuck in Commit active or Compiling
state, with following functions on the top of the stack:

sqlpgResSpace
sqlpWriteLR

and waiting for SQLO_LT_SQLP_DBCB__add_logspace_sem latch.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 10.5 Fix Pack 10 or higher                    *
****************************************************************
Local Fix:
Recycle the database or reduce ARCHRETRYDELAY:
db2 update db cfg for  using archretrydelay 0 immediate
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : IT07720 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
22.11.2017
19.07.2018
19.07.2018
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)