16.20 - Example: Using DiskspaceV - 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

To obtain a list (in order of the amount of space used) of those databases currently using more than 80% of their permanent space allocation, enter:

SELECT DatabaseName, SUM(CurrentPerm)
   FROM DBC.DiskSpaceV
   GROUP BY DatabaseName
   HAVING (SUM(CurrentPerm)/NULLIFZERO(SUM(MaxPerm))) >.8
   ORDER BY SUM(CurrentPerm) DESC;

You can also use the AMPUsage and DiskSpace views to compile and maintain usage statistics that can later be selected and analyzed as described in the following sections.