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 > Space information by database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-02, 15:46
krompot krompot is offline
Registered User
 
Join Date: Mar 2002
Posts: 3
Space information by database

For a given database, I want to know space information by table. The tables are not all in the default dbspace for the database.

What is the easiest non-instrusive way to do this? oncheck -pe?
Reply With Quote
  #2 (permalink)  
Old 03-28-02, 22:25
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

You can select it from system table (I'm no sure what table is) for all information If you afraid that it's old data you can update statistics low for table it will update information in system table
Reply With Quote
  #3 (permalink)  
Old 04-01-02, 11:42
krompot krompot is offline
Registered User
 
Join Date: Mar 2002
Posts: 3
If you know how to construct such a query for non-fragmented tables, I would appreciate knowing as well. I have looked at all of the catalog tables and can't find the information I need.

The only way that I can see for determining this information is by using "oncheck -pe".
Reply With Quote
  #4 (permalink)  
Old 04-01-02, 13:24
townscream townscream is offline
Registered User
 
Join Date: Mar 2002
Posts: 19
use sysmaster database :

select tabname , <systabinfo.fileds_you_want> from systabnames n,
systabinfo i
where n.partnum = i.ti_partnum

from systabinfo you should choose
ti_nextns ( number of extents )
ti_nptotal ( space allocated )
ti_npused ( space used )
ti_npdata ( space used by data , indexes excluded )
some tables that you know that have not too much indexes
low ti_npdata and high and almost npused = nptotal
will be probably wasting space and you should unload
all data , recreate the table e load data again
and then build the indexes

iŽd like to know the meaning of ti_flags ....
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