17.10 - Example: Using AMPUsageV - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

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