|
|
Archives of the TeradataForum
Message Posted: Wed, 21 Mar 2012 @ 12:38:49 GMT
Subj: | | Re: To find the CPU Usage of the system |
|
From: | | Mankala, Mahesh |
Hi Sravan,
Please check the below query.
Select
qrylog.SessionID,
USERNAME,
qrylog.CollectTimeStamp "CollectTimeStamp",
qrylog.LogonDateTime,
--( qrylog.FirstRespTime - qrylog.StartTime HOUR(2) To second(2) ) AS
TheRunTime,
qrylog.TotalIOCount,
qrylog.AmpCpuTime,
qrylog.NumResultRows ,
qrylog.APPID,
b.SqlTextInfo,
spoolusage,
errorcode
From
dbc.dbqlogtbl qrylog,DBC.QryLogSQL b
Where
qrylog.QueryID=b.QueryID
And qrylog.procid=b.procid
and qrylog.collecttimestamp >= '2012-01-20 00:00:00'
and qrylog.collecttimestamp <= '2012-01-20 23:59:59'
sample 10
Thanks,
Mahesh
| |