sql script to identify SEQUENTIAL SCAN sql statements.
Posted in 2005
Topics: Performance & Tuning
Friends, I am trying to collect sql statements which makes SEQUENTIAL SCAN. Does any one has tested script on 7.31 UD4 Informix engine?. I appreciate your help. Regards, Subra,
Hi, try with this
database sysmaster;
select tabname, sum(seqscans) tot_scans
from sysptprof
where seqscans > 0
and dbsname not like 'sys%'
group by 1
order by 2 desc
Bye
Paola
Quoting "sengodan.su...." <sengodan.subramanian@verizon.com>:
>
>
>
>
> Friends,
>
> I am trying to collect sql statements which makes SEQUENTIAL SCAN.
>
> Does any one has tested script on 7.31 UD4 Informix engine?.
>
> I appreciate your help.
>
> Regards,
>
>
>
> Subra,
>
>
>
>
----------------------------------------------------------------
Ce.S.P.I. - UNLP
You could try something like this...just run it at regular intervals.
select b.pid, b.username,a.sqx_seqscan, a.sqx_sqlstatement fromsyssqexplain a, syssessions b
where a.sqx_sessionid = b.sid and sqx_seqscan >=1;
-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org] On
Behalf Of sengodan.su....
Sent: Tuesday, March 29, 2005 5:49 AM
To: ids@iiug.org
Subject: sql script to identify SEQUENTIAL SCAN sql statements. [4630]
Friends,
I am trying to collect sql statements which makes SEQUENTIAL SCAN.
Does any one has tested script on 7.31 UD4 Informix engine?.
I appreciate your help.
Regards,
Subra,
Privileged/Confidential Information may be contained in this message or
attachments hereto. Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind. Opinions, conclusions and
other information in this message that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it.