16.20 - Example: Using AMPUsageV - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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