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 > reorgchk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-03, 04:09
jagan_5378 jagan_5378 is offline
Registered User
 
Join Date: Nov 2003
Posts: 68
reorgchk

hi !
reorgchk update statistics on table all

what is use of this .
i t will improve the perpormanc or not ?
daiil i have to do this ? or not?

pl tell me to improve perpormance.
Reply With Quote
  #2 (permalink)  
Old 11-05-03, 04:37
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Reorgchk will tell you whether you need to reorg the tables\indexes. If needed, reorgs can definitely improve performance.

After a reorg, you should update statistics with runstats. Statistics can also be updated during the reorgchk. Accurate statistics helps DB2 choose the right access path to retrieve the data.
Reply With Quote
  #3 (permalink)  
Old 11-05-03, 05:12
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Reorgchk

Hi,

Just to add to what Marcus said it is also advisable to do a runstats for all the tables at regular intervals as that helps db2 to choose the best optmized path while executing access plans.

Secondly if you need to do a reorg as suggested by the reorgchk then please remember to commit afer you have reorged a few tables as reorg is a log intensive process and also takes time.

regards

nitin.
Reply With Quote
  #4 (permalink)  
Old 11-05-03, 11:21
xiaochuan_li xiaochuan_li is offline
Registered User
 
Join Date: Apr 2003
Location: P.R.China
Posts: 6
Smile remember use proper index

add one thing: when there is more than one index for the table, you should use the most used one to reorganize your table (to gain best performance)
Reply With Quote
  #5 (permalink)  
Old 11-05-03, 11:31
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
The index you use to reorg a table determines the clustering of the table. If the most used index is a single column unique index, then that is often not a good candidate for clustering, even if it is the most used index.

Clustering has been discussed at length in other threads in this forum, with some examples and rules of thumb about choosing the clustering.

Clustering can also be designated by defining one of the indexes as the clustering index, in which case no index need be specified during the table reorg. If a clustering index has been defined, and an index is specified for the table reorg, then it must be the same as the clustering index.
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