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 > reorg a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-02, 11:57
myu2050 myu2050 is offline
Registered User
 
Join Date: Nov 2002
Posts: 2
Question reorg a table

I have deleted lot of rows from one table, and then I need to shrink the table size by using alter index to cluster command. It failed because I did not have enough dbspace for the job.

How could I know how much free space I need for the table reorg?

Any bright idea will be welcome.
Reply With Quote
  #2 (permalink)  
Old 11-05-02, 07:02
thedafna thedafna is offline
Registered User
 
Join Date: Oct 2002
Posts: 52
you can try:

ALTER FRAGMENT ON TABLE tablename INIT IN dbspacename_or_fragment_expression;

This will, oddly enough, work for both fragmented and non-fragmented tables and tends to be faster than CLUSTERing an index since it does not have to sort the data.

It might work - I never tryed it

Dafna
Reply With Quote
  #3 (permalink)  
Old 11-05-02, 12:44
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

there is another way Unload-Drop-Create Table-Load-Build Index-Upstat
you have to re-calculate table's extent,next extent or create by fragment for optimization
the table is very clean but it takes quite long time
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