Pregunta

Is there a query that I could run on a DB2 instance running on AIX that would show much how much disk space a specific table is using?

DB2/AIX64 10.1.2

¿Fue útil?

Solución

The simplest approach would be to query the ADMIN_GET_TAB_INFO table function:

SELECT 
 data_object_p_size + 
 index_object_p_size + 
 long_object_p_size + 
 lob_object_p_size + 
 xml_object_p_size 
FROM TABLE (SYSPROC.ADMIN_GET_TAB_INFO('YOURSCHEMA', 'YOURTABLE')) 
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top