Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 14 Mar 2011 @ 13:44:57 GMT


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


Subj:   Re: CPU and IO usage per user per day for a given
 
From:   Yong Boon

These information could be found from DBQL and AMPUsage

1. DBQL

     SELECT username
            , CAST(starttime AS DATE) AS StartDate
            , SUM(AMPCPUTime+ ParserCPUTime) AS TotalCPU
            , SUM(TotalIOCount) AS TotalIO
        FROM dbc.dbqlogtbl
        WHERE username = ''
          AND EXTRACT(YEAR FROM starttime) = 2011
        GROUP BY 1, 2   ORDER BY 1, 2

2. For AMPUSAGE, depend on your account string, you need to do some manipulation to extract the date information if you've specified in the date info in your account string.


Regards,

YB.



     
  <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