DiskspaceV Example | Data Dictionary | Teradata Vantage - 17.00 - Example: Using DiskspaceV - 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

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.