How to Find the Size of Tables on Disk (bytes) in HANA

From the HANA Studio, open the SQL console. Execute the following command,

SELECT SCHEMA_NAME,TABLE_NAME,DISK_SIZE FROM PUBLIC.M_TABLE_PERSISTENCE_STATISTICS ORDER BY DISK_SIZE DESC

The result as below screenshot. The max rows will determine how many tables to be listed. You can put to any number to list all possible tables.

Size of Tables on Disk HANA

If you are looking for 1 table size, use the filter function.

Table Size HANA Studio

Enter the table name and press Execute. You will get the output table size.

Table Size HANA Studio - Execute

Alternatively, use SAPGUI to determine the table size. Execute transaction code DB02. Double click on Table/Views under the Diagnostics.

DB02 - Diagnostice - Tables View

The table size as below,

DB02 - Diagnostice - Tables Size

Note

You can add multiple filters which mean you can look up for different schema, table and size.

You May Also Like

Leave a Reply?