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 > Free up more dbspaces

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-08, 23:33
VoodooEx VoodooEx is offline
Registered User
 
Join Date: May 2005
Posts: 4
Free up more dbspaces

Hi,

Just wondering when you delete records, does it free up the dbspaces. Do I need to follow up with some other syntax after I did a DELETE FROM statement.

Currently my rootdbs is around 99% full and I am concern about adding new chunk to the rootdbs.

I am using Informix 5.02 on HP-UX.
Reply With Quote
  #2 (permalink)  
Old 11-17-08, 05:45
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
Hi...I dont know how it works with version 5, but
in IDS 9 and 10 once the database server allocates disk space to a tblspace as part of an extent, that space remains dedicated to the tblspace. Even if all extent pages become empty after you delete data, the disk space remains unavailable for use by other tables.
So...when you delete rows in this table, the database server reuses that space to insert new rows into the same table BUT not into other tables !

You have to rebuild the table use any of the following:
ALTER INDEX(with the TO CLUSTER clause) if the table includes an index
UNLOAD and LOAD
ALTER FRAGMENT

See Informix SQL manuals for details.
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