dbTalk Databases Forums  

Index fragmentation and reorganization

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Index fragmentation and reorganization in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wood,Shannon
 
Posts: n/a

Default Index fragmentation and reorganization - 08-29-2003 , 10:27 AM






Hello,

When DB2 tables have fragmentation you issue a reorganize table command
as follows.

db2 reorg table myschema.my_table use temp_4k

Does the following statement reorganize a fragmented index or reorganize
the table sorting the data by my_index1?

db2 reorg table myschema.my_table index myschema.my_index1 use temp_4k


Shannon Wood



Reply With Quote
  #2  
Old   
Mark A
 
Posts: n/a

Default Re: Index fragmentation and reorganization - 08-29-2003 , 03:01 PM






Quote:
Does the following statement reorganize a fragmented index or reorganize
the table sorting the data by my_index1?

db2 reorg table myschema.my_table index myschema.my_index1 use temp_4k


Shannon Wood

The statement above will reorg the table sorting the table data by the index
specified. If a clustering index is defined, no index need be specified (and
if specified it must be the same as the clustering index). All indexes will
be rebuilt as part of the reorg, so long as an "inplace" reorg is not
specified.




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.