728x90
Question
How do you determine table space usage within a dbspace ?
Answer
INTRODUCTION
You may need to determine the amount of space each table uses within a dbspace. The sysmaster table sysptnext contains information about the start and size of partitions within the database server. You can query this table to determine table usage within a dbspace.
STEPS
To retrieve space usage information about tables in a dbspace, execute the following sql statement:
- SELECT DBINFO( "DBSPACE" , pe_partnum ) dbspace, dbsname databasename, tabname tablename, pe_size num_pages
FROM sysmaster:sysptnext a, sysmaster:systabnames b
WHERE a.pe_partnum = b.partnum AND
DBINFO( "DBSPACE" , pe_partnum ) IN ("dbspacename1", "dbspacename2" )
ORDER BY dbspace, num_pages DESC;
dbspacename1, dbspacename2
- a comma separated list of the dbspace(s) for which you want the information
728x90
'Informix > informix reference' 카테고리의 다른 글
Script to check permission and ownerships of Informix product. (0) | 2011.11.15 |
---|---|
テーブルの現在および追加可能なエクステント数の取得について (0) | 2011.11.12 |
Checking what tables are created on any specific dbspace (0) | 2011.11.12 |
Calculating used table, dbspace, and extents (0) | 2011.11.12 |
Sysmaster query for determining additional extents availble per table/index. (0) | 2011.11.12 |