RE: Potential Long transactions
- From: "Clifford Burton" <Clifford.Burton@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Feb 2008 08:54:30 +1100
The only point I would add is that the query assumes that sh_maxlogs
have been allocated.
-----Original Message-----
From: informix-list-bounces@xxxxxxxx
[mailto:informix-list-bounces@xxxxxxxx] On Behalf Of Jack Parker
Sent: Tuesday, 26 February 2008 11:54 PM
To: Mohit; informix-list@xxxxxxxx
Subject: RE: Potential Long transactions
Haven't looked at this thoroughly yet, but thought that I'd point out
that
you can get $ONCONFIG values (like LTXHWM) directly out of sysmaster.
select * from sysmaster:sysconfig where cf_name like 'LTX%'
cheers
j.
Sane ego te vocavi. Forsitan capedictum tuum desit.
-----Original Message-----
From: informix-list-bounces@xxxxxxxx
[mailto:informix-list-bounces@xxxxxxxx]On Behalf Of Mohit
Sent: Monday, February 25, 2008 8:07 PM
To: informix-list@xxxxxxxx
Subject: Potential Long transactions
Version: IDS 10
I have written below query to find out those transactions that could
be potential long transactions. Assuming 50/60 is high water mark
values:
select s.txid,r.owner, r.sid, scb.pid
from systxptab s, sysrstcb r, sysscblst scb
where (loguniq-logbeg)/(select sh_maxlogs
from sysshmvals) > 40/100 { catch when it's
over 40% }
and logbeg > 0 { I saw lot of transactions owned by informix that
have logbeg as 0 }
and s.owner = r.address
and r.sid = scb.sid;
Does this query look correct ? I didn't know how to get LTXHWM value
from sysmaster to hard coded the values. Any suggestion or
improvement ?
_______________________________________________
Informix-list mailing list
Informix-list@xxxxxxxx
http://www.iiug.org/mailman/listinfo/informix-list
_______________________________________________
Informix-list mailing list
Informix-list@xxxxxxxx
http://www.iiug.org/mailman/listinfo/informix-list
*******************************************************************
Everything about this email and its attachments, including potentially confidential components, is only for the eyes and ears of the persons to whom it has been addressed (i.e. the persons whose names appear in the "To" section of the email; however, those listed in sections "CC" and "BCC" may also consider themselves included in the group whose eyes and ears this email is for.). In the event that no physical, emotional or spiritual resemblance can be made between you and the intended recipients, you have been mistakenly or deliberately omitted from the email, someone has given it to you, or you have nicked it. If you're not supposed to have access to this email, please delete it, destroy it and deprive others from it. Oh, and let us know when you are done.
*******************************************************************
.
- References:
- Potential Long transactions
- From: Mohit
- Potential Long transactions
- Prev by Date: Re: how to ontape to disk
- Next by Date: Re: IIUG Board election results
- Previous by thread: Re: Potential Long transactions
- Next by thread: For what it's worth
- Index(es):
Relevant Pages
|