문제

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

도움이 되었습니까?

해결책

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')) 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top