Escolar Documentos
Profissional Documentos
Cultura Documentos
for F2 :
F2 is described in the reorgchk header as:
100 * (Effective Space Utilization of Data Pages) > 70
F3
F3 is described in the reogchk header as:
100 * (Required Pages / Total Pages) > 80
Basically DB2 is checking to make sure that the total pages in the table is not
more than 20% higher than the required number of pages.
The sql calculation is much easier here, again use this SQL at your own risk:
select substr(tabschema,1,18) as tabschema,
substr(tabname,1,30) as tabname,
npages,
fpages,
case
when fpages >0 then decimal(100 * (float(npages)/float(fpages)),5,2)
else -1
end as F3
from syscat.tables
where type='T'
and npages >1
and fpages >1
with ur
remember that you should do a runstats both before AND after the reorg. My favo
rite runstats syntax is:
db2 runstats on table STAGLOG with distribution and detailed indexes all
To find any active inplace (online) reorgs that you have running, use:
db2 "select snapshot_timestamp, reorg_start, substr(table_name,1,18) as table_na
me, REORG_CURRENT_COUNTER, REORG_MAX_COUNTER, REORG_TYPE, REORG_STATUS from tabl
e(SNAPSHOT_TBREORG('$db_name', -1)) as tab_reorg where reorg_status=1"
You can also get the same information from a table snapshot:
> db2 get snapshot for tables on dbname
Reference :
http://db2commerce.com/2012/02/22/issue-with-online-reorgs-on-unformatted-event-
monitor-tables/
http://db2commerce.com/2012/07/12/how-to-delete-data-from-a-db2-table-and-releas
e-disk-space/
http://db2commerce.com/2014/06/02/how-to-tell-when-a-table-reorg-is-needed/
http://db2commerce.com/2013/05/09/when-is-a-reorg-really-online/
http://db2commerce.com/2016/09/27/embers-best-practices-for-runstats-and-reorgs/
http://www.dbisoftware.com/blog/db2_performance.php?id=116