How to check the table size using query in Teradata

Table size in Teradata:

DBC.ALLSPACE is the system table used to find the space occupied for each table or database in Teradata.

We can measure the space used by the table in bytes across databases also.

CURRENTPERM column in DBC.ALLSPACE:

The total number of bytes(including table headers) currently allocated to existing data tables,index tables and sub tables,stored procedures,triggers and permanent journals residing in a particular database/user. This value is maintained on each AMP.

Query to get the Table size:

Example:

Output:

Table size in Teradata

Query to find the Database size:

Output:

Database size in Teradata
Database size in Teradata

Recommended Articles