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 > Rebuilding Index

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-08, 11:18
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 55
Rebuilding Index

How can I rebuild one index for one table ?


well, how I know what are the index of one table ?????
Reply With Quote
  #2 (permalink)  
Old 01-15-08, 11:30
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
>>>> well, how I know what are the index of one table ?????
answer:
option 1) dbschema -d <you_database> -t <your_table> -ss
option 2) open a connection with your database and write a SQL with tables "systables" and "sysindexes" or "sysindices"


>>>> How can I rebuild one index for one table ?

option 1) drop index...; create index...
option 2) set indexes <idx_name> disabled; set indexes <idx_name> enabled
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #3 (permalink)  
Old 01-16-08, 10:35
anurbas anurbas is offline
Registered User
 
Join Date: Dec 2006
Location: Latrobe, PA
Posts: 16
Another option is:

ALTER FRAGMENT ON INDEX <index_name>;

If you want to place this in a new dbspace:

ALTER FRAGMENT ON INDEX ixshipdeta2 <index_name> in <dbspace_name>;
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