Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 21 Mar 2012 @ 12:38:49 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023