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 > Why is my new chunk already full?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-04-03, 04:21
royblythe royblythe is offline
Registered User
 
Join Date: Jul 2003
Posts: 2
Why is my new chunk already full?

I've just added a new 256mb chunk to a 10GB database and it has already become full.

We have also deleted 3 years worth of data (from 6 years in the database) a little while ago. This was followed by a CLUSTER INDEX on the larger tables to free up some space (forcing a table rebuild).

Is there anyway of finding out what has gone into the new chunk?

Is thee any reason the empty slots in the database are not appearing to be used.


Thanks for yuor help.
Reply With Quote
  #2 (permalink)  
Old 07-04-03, 09:23
royblythe royblythe is offline
Registered User
 
Join Date: Jul 2003
Posts: 2
Looking into this further, I think the reason the new chunk filled up so quickly was...

1) A backlog in flushing the logical logs could be carried out therefore writing to the new chunk so quickly.

2) Extents on the tables caused more disk usage than purely data/index records to be used up.

This just leaves me with wondering why the deleted data doesn't appear to have freed up approximately half the space.

Is there any way of checking how much space is used by the data and how much is used by the index in a table?

Cheers,
Roy.
Reply With Quote
  #3 (permalink)  
Old 07-10-03, 06:56
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
database sysmaster;
select b.dbsname, b.tabname, hex(a.partnum), a.nextns, a.fextsiz FIRST, a.nextsiz NEXT, a.nptotal, a.npused, a.npdata
from sysptnhdr a, sysptprof b
where a.partnum = b.partnum

will give you a fine overview of number of extents per table together with their first extent size, next extent size, number of pages total(total number of pages allocated in extents), used (total number of pages used - ie one record in one page is 1 page used), data (total number of pages in data.

select * from sysextents will give you an extent overview per extent.

here you can find the chunk id (version 9.4)
prior to version 9.4, use hex(start). the first three positions are the number of the cunk. the rest is the offset in that chunk.
__________________
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

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