17.00 - Example: Using AMPUsageV - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

The following SELECT statement displays, for a given account, total CPU time and total disk accesses for all AMPs:

SELECT AccountName,SUM(CPUTime),SUM(Diskio)
       FROM DBC.AMPusageV WHERE AccountName=’7654’
       GROUP BY AccountName; 

Result:

AccountName     Sum(CPUTime)      Sum(DiskIO)
-----------     ------------      -------------
7654            204,352.88        5,226,742