Solved

Reorgchk, Reorg, Runstats not having any effect after completion. Anyone know why this can be? Any solution?

Posted on 2008-06-23
7
586 Views
Last Modified: 2012-06-27
Hi all,
I am very surprised to see that after doing a Reorgchk followed by reorg of selected tables and concluding with a runstats of the reorged tables, all of the tables continue to be identified and selected as reorg candidates in subsequent/followup reorgchk.

Has anyone had this experience? Can you share with me what you may have found out to the the reason and if possible what are the possible solutions to correct the situation?

This is very important to us to get this tables to their optimal state and I'll greatly appreciate a solution to this issue.

Thanks
0
Comment
Question by:Enuda
  • 3
  • 3
7 Comments
 
LVL 45

Expert Comment

by:Kdo
ID: 21851540
Hi Eduda,

My guess is that you're not using the CLEANUP option an the REORG INDEX statements.  That should solve this.

It's annoying to have DB2 suggest that a REORG is still needed, but it shouldn't really affect performance.


Good Luck,
Kent
0
 

Author Comment

by:Enuda
ID: 21853073
Kdo,
Ok thanks. I'l try that and see...
0
 

Author Comment

by:Enuda
ID: 21854362
Kdo,
I have tried CLEANUP ONLY ALL and all but one table/index is left still indicating a need for reorg. Can you suggest what might be the problem here?
I will like to dig further and find out why. Could it be that the page size is not the right page size for the table? Just a thought.

Another question. CLEANUP ONLY says indexes are not rebuilt. What does that really mean? Isn't rebuilding indexes just the whole idea behing reorg indexes? You would think IBM could have made REORG do all CLEANUP tasks without being told or is there a reason for not doing so?

So far so god and thanks again
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 45

Accepted Solution

by:
Kdo earned 400 total points
ID: 21854618
Hi Enuda,

This isn't a page-size issue.  :(

I'd read that when a reorg leaves a table appearing that another reorg is required, running with the CLEANUP ONLY flag will perform a quick condensing of the index and can solve the problem.

CLEANUP attempts to physically restructure the index pages without scanning the source table and rebuilding them.  It physically deletes index entries that are marked as logically deleted, when it encounters (or generates) an index page with no entries it returns the page to the free pool, and where possible, it merges partial pages to reduce the total number of index pages.

This actually clearing the reorg check needed flag on one table/index is a good thing.  It would have been nice if it had gotten them all, but it did indicate that the issue with reorgchk is minor.

Let me study a bit....

Kent
0
 
LVL 45

Expert Comment

by:Kdo
ID: 21854638

Did you run the reorgs in exclusive mode?
0
 
LVL 16

Assisted Solution

by:theo kouwenhoven
theo kouwenhoven earned 100 total points
ID: 21856648
Hi Enuda,

Did you check the manual about reorganisation of indexes?
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db29.doc.ugref/db2z_utl_reorgindex.htm

Special the part "Concurrency and compatibility for REORG INDEX" (told me some new stuff :)
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db29.doc.ugref/db2z_concurrencyreorgindex.htm

Good Luck,
Murph
0
 

Author Comment

by:Enuda
ID: 21870836
Kdo, No I did not run in exclusive mode. I allowed READ WRITE access during reorg. Is that what you mean?

murphey2, thanks for the links. I'll read thru them tonight and see what I can learn from it.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now