dbTalk Databases Forums  

Meaning of sysibmadm.SNAPAPPL.UOW_STOP_TIME?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Meaning of sysibmadm.SNAPAPPL.UOW_STOP_TIME? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lennart
 
Posts: n/a

Default Meaning of sysibmadm.SNAPAPPL.UOW_STOP_TIME? - 03-05-2010 , 04:50 AM






A while ago I discovered a transaction that had been active for a long
time. The statement where against a infrequently accessed table, and
caused no problem except that the transaction log continued to be
active. So I started looking at how to detect such things for the
future. What does it mean if sysibmadm.SNAPAPPL.UOW_STOP_TIME is
null? Is this an open transaction, or can it be null for other
reasons?

Thanx
/Lennart

Reply With Quote
  #2  
Old   
Ian
 
Posts: n/a

Default Re: Meaning of sysibmadm.SNAPAPPL.UOW_STOP_TIME? - 03-05-2010 , 03:36 PM






On 3/5/10 2:50 AM, Lennart wrote:
Quote:
A while ago I discovered a transaction that had been active for a long
time. The statement where against a infrequently accessed table, and
caused no problem except that the transaction log continued to be
active. So I started looking at how to detect such things for the
future. What does it mean if sysibmadm.SNAPAPPL.UOW_STOP_TIME is
null? Is this an open transaction, or can it be null for other
reasons?

UOW Stop Time is the time when a COMMIT or ROLLBACK was issued for a
particular transaction. If it is null, then yes, you're correct,
the transaction is still active.

Reply With Quote
  #3  
Old   
Lennart
 
Posts: n/a

Default Re: Meaning of sysibmadm.SNAPAPPL.UOW_STOP_TIME? - 03-06-2010 , 01:08 AM



On 5 mar, 21:36, Ian <ianb... (AT) mobileaudio (DOT) com> wrote:
Quote:
On 3/5/10 2:50 AM, Lennart wrote:



A while ago I discovered a transaction that had been active for a long
time. The statement where against a infrequently accessed table, and
caused no problem except that the transaction log continued to be
active. So I started looking at how to detect such things for the
future. What does it mean if *sysibmadm.SNAPAPPL.UOW_STOP_TIME is
null? Is this an open transaction, or can it be null for other
reasons?

UOW Stop Time is the time when a COMMIT or ROLLBACK was issued for a
particular transaction. *If it is null, then yes, you're correct,
the transaction is still active.
Thanks, that was what I suspected (and feared). I forced these
transactions yesterday, and there aren't any new ones (yet?). In case
someone is interested, here is the qeury I've used:

select x.agent_id, x.uow_start_time, substr(y.stmt_text,1,200),
y.stmt_start, y.stmt_stop
from sysibmadm.snapappl x join sysibmadm.snapstmt y
on x.agent_id = y.agent_id
where x.uow_stop_time is null
and timestampdiff(8,CHAR(current_timestamp - x.uow_start_time)) >
8
order by x.uow_start_time;

/Lennart




select
x.agent_id,
UOW_START_TIME, substr(stmt_text,1,200) from sysibmadm.SNAPAPPL x
join sysibmadm.snapstmt y on x.agent_id = y.agent_id where
UOW_STOP_TIME is null and TIMESTAMPDIFF(2,CHAR(current_timestamp -
UOW_START_TIME)) > 8 order by UOW_START_TIME

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.