Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

reorg and reorgchk

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EpsilonAurigae - 12 Feb 2006 22:37 GMT
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.
Pierre Saint-Jacques - 13 Feb 2006 18:26 GMT
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.

Signature

Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515

> 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.
Ian - 13 Feb 2006 18:44 GMT
> 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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.