If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > how to get realistic table size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-06, 10:09
meiwen meiwen is offline
Registered User
 
Join Date: Oct 2005
Posts: 30
Question how to get realistic table size

Hi, I would like to know how is the acutal table size , is there any command i can use to check for it? (I use oncheck -pc dbname:tablename, but not sure).


Another question : if i create a table with 10 fields, include all kinds of data type. But actually a lot of records which are inserted with null value for most of fields, does these null value also take place in harddisk?

Last edited by meiwen; 06-09-06 at 10:10. Reason: more accurate
Reply With Quote
  #2 (permalink)  
Old 06-09-06, 10:26
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Extent Sizes

-- NOTE: if you page size is 4096 change the "* 2 { Your systems page " to 4
-- if you growth factor is greater the 20% per year make the nessary
-- changes.

database sysmaster;

select dbsname,
tabname,
count(*) num_of_extents,
sum (pe_size ) pages_used,
round (sum (pe_size )
* 4 { Your systems page size in KB }
* 1.2 { Add 20% Growth factor })
ext_size, { First Extent Size in KB }
round (sum (pe_size )
* 4 { Your systems page size in KB }
* .2 { Estimated 20% Yearly Growth })
next_size { Next Extent Size in KB }
from systabnames, sysptnext
where partnum = pe_partnum
group by 1, 2
order by 3 desc, 4 desc;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On