During this show, we talked about a SQL Snapshot command that would generate REORG commands for tables that need to be reorganized WITHOUT having to run the REORGCHK utility. Please watch this show replay so that you fully understand the problems with REORGCHK and why this SQL Snapshot may be a much better choice for your organization!
Here is the SQL Snapshot Command:
select ‘REORG TABLE ’ || TABSCHEMA || ‘.’ || TABNAME || ‘ INPLACE ALLOW WRITE ACCESS;’
from sysibmadm.snaptab
where (ROWS_READ > 999)
AND (((OVERFLOW_ACCESSES * 100) / (ROWS_READ + 1) > 3)
You can modify this to run offline REORGS if you prefer. If you do online REORGS, remember to reorganize indexes as a second, separate step. Why did IBM make index REORGS a separate step? Good question.
During the show we also reminded people to REORG some of the DB2 Catalog Tables. We focus on our database tables but often forget basic maintenance to the DB2 Catalog. There are 3 tables in particular that you should pay attention to and REORG as necessary! Watch the show!
DBI's comprehensive performance and configuration repository with the industry's best trend graphs enable you to monitor and manage your databases with confidence, improve stability, and achieve scalability with existing hardware. Hint: Use our performance trend charts on your next performance review to earn high praise from management.
Contact DBI and find out how our DB2 LUW Performance Solutions can truly help you optimize performance and lower IT costs.