On 2010-07-20 00:16, shorti wrote:
Quote:
DB2 V9.5 on AIX,
We received an error on one of our machines that the DB2 active log
filesystem was full. I am assuming it was due to some uncommitted
transaction so I am trying to hunt down who it was. To do this I was
trying to determine what active log file was hung out in order to get
a time period of how long the transaction has been open so I can find
it among the thousands of transactions. I did confirm we filled up
the active log directory and not the archive log directory. |
Perhaps something like:
select
x.agent_id,
substr(z.corr_TOKEN,1,12) as ip,
cast(y.stmt_text as varchar(800)) as stmt,
x.locks_held,
x.APPL_IDLE_TIME,
x.UOW_START_TIME
from sysibmadm.SNAPAPPL x
join sysibmadm.snapstmt y
on x.agent_id = y.agent_id
join sysibmadm.SNAPAPPL_INFO z
on x.agent_id = z.agent_id
where UOW_STOP_TIME is null
and TIMESTAMPDIFF(8,CHAR(current_timestamp - UOW_START_TIME)) > 8
order by UOW_START_TIME;
You might be interested in other attributes, and it is assumed that the
right monitors are on.
/Lennart
[...]