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 > DB2 > Reorg certain index ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-08, 20:02
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Reorg certain index ?

Hi,

I need to reorg some indexes.
After reading reorg command description only option I see is "INDEXES ALL FOR TABLE" clause whitch reorg's all table indexes.
Is it possible to reorg only certain index ?

thank you in advance
Vilius
Reply With Quote
  #2 (permalink)  
Old 11-06-08, 21:04
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by vilius
Is it possible to reorg only certain index ?
DROP/CREATE?
Reply With Quote
  #3 (permalink)  
Old 11-06-08, 23:06
madhu_kaza madhu_kaza is offline
Registered User
 
Join Date: Apr 2008
Posts: 39
You can give it as follows:

REORG table <tablename> index <index name>

Thanks,
Madhavi.
Reply With Quote
  #4 (permalink)  
Old 11-07-08, 03:04
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
You can refer the DB2 Manual where some very good example like this one is also mentioned:

db2 "reorg table homer.employee index homer.empid"
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