DiskspaceV Example | Data Dictionary | Teradata Vantage - Example: Using DiskspaceV - Advanced SQL Engine - Teradata Database

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-10-15
dita:mapPath
yoz1556235523563.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantageā„¢

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.