I don't remember off-hand the maximum number of extents a table can have (i think it's 220+), but here's a query to determine the number of extents allocated to your tables:
database sysmaster;
select dbsname[1,10] database,
tabname[1,15] tablename,
count(*) num_of_extents,
sum( pe_size ) total_size
from systabnames, sysptnext
where partnum = pe_partnum
group by 1, 2
order by 3 desc, 4 desc;
Thanks fellas, I have seen similar versions of do that but my problem is that I am unsure how to use this info to know when I need to worry about running out of extents. Dumb question surely, but when I run these queries, what do I compare the results to in order to know I am in good standing?
If you have any IDS documentation, look for the "Performance Guide for IBM Informix Dynamic Server" book.
There's a section in "Table Performance Considerations" (Ch. 6 in my book) that gives you some oncheck stuff to execute on a table-by-table basis so you can avoid the dreaded error -136 (No More Extents) error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.