Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > Informix database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-03, 05:21
sengchoon sengchoon is offline
Registered User
 
Join Date: Aug 2002
Posts: 21
Talking Informix database

How to calculate database's size, log size and tmp size in KB?
And also what is the formula to calculate current table size and row size in KB?
Reply With Quote
  #2 (permalink)  
Old 04-08-03, 06:35
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Do you want to calculate this for future databases or for existing?

The size of a database or a table or even a row can be measured in different ways. It depends a bit on what you want.

database sysmaster;
select * from sysptnhdr;

nptotal - total pages allocated for this table
npused - A page is used if at least one row is/was in it.
npdata - The total amount of completely full pages.

nptotal - npdata is the amount of free pages in the extent.

Now it depends a bit on the page size to calculate it in KB.
Most of the unic systems have 2K page sizes. AIX has 4K and Windows also has 4K page sizes.

The size of the logs can be seen with 'onstat -l' This is also in page sizes.
__________________
rws
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

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