Unix Technical Forum

reorg and reorgchk

This is a discussion on reorg and reorgchk within the DB2 forums, part of the Database Server Software category; --> does anyone have an idea as to why the reorgchk utility says that a particular table needs to be ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:03 AM
EpsilonAurigae
 
Posts: n/a
Default reorg and reorgchk

does anyone have an idea as to why the reorgchk utility says that a
particular table needs to be reorged even after running the reorg
command on that particular table. answer is appreciated.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:04 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: reorg and reorgchk

If the table has more than one index and one of them is a clustering index
then after an offline reorg the table will be fine and sequenced, the
cluster ratio of the clustering index will be a 100% but the other index(es)
may show a cluster ratio less than 80%.
At that point the reorgchk command does not know which index is the
clustering one (it may be one specified in a previous reorg command). It
will then show that the table needs to be reorg'ed because those other
index(es) may be out of cluster.

Now, if the reorg is INPLACE (meaning online), then the reorg wil do one and
only one of two things, never both:
1) Reclaim space if there is no clustering index defined or index specified
in the reorg command.
Then a reorgchk afterwards may show that the table need reorg
because some index(es) is out of cluster.
2) Resequence the table according to: An index with a cluster clause or an
index specified.
A reorgchk afterwards could show need because space could be
reclaimed.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"EpsilonAurigae" <abhishek.sakhare@gmail.com> a écrit dans le message de
news: 1139783850.340170.306190@g14g2000cwa.googlegroups. com...
> does anyone have an idea as to why the reorgchk utility says that a
> particular table needs to be reorged even after running the reorg
> command on that particular table. answer is appreciated.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 06:04 AM
Ian
 
Posts: n/a
Default Re: reorg and reorgchk

EpsilonAurigae wrote:
> does anyone have an idea as to why the reorgchk utility says that a
> particular table needs to be reorged even after running the reorg
> command on that particular table. answer is appreciated.
>


It depends on why REORGCHK says that the table needs to be reorganized.
Post the output.

Also, did you update statistics again after REORG?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com