473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Bug in calculating ISIZE for REORGCHK on indexes??

Hi:
I'm trying to manually compute the ISIZE in REORGCHK for indexes in
DB2 v8 (fp 4).

Based on the documentation in Administrative Guide for v8, for non lob
fields
ISIZE should be the aggregate of avg datasize of the index columns + 2
bytes (1 byte for v7) overhead for each varchar and vargraphic column
and 1 byte overhead for each null column.
I use AVGCOLLEN in syscat.columns for the column size, and add 2 bytes
for each varchar/vargraphic column and 1 byte for each column that
allows nulls. The result is a lot bigger than the ISIZE in reorgchk in
DB2 v8.

If however I subtract 2 bytes from AVGCOLLEN for each
varchar/vargraphic column and ignore the adjustment NULLS attribute
for the column, my result matches REORGCHK.

I also found IBM APAR Software JR18802: REORGCHK OVERESTIMATES THE
ISIZE (fixed in fp 3) that seems to suggest that REORGCHK was adding
extra bytes to AVGCOLLEN which is already corrected for VARCHAR/Nulls.
If REORGCHK were indeed adding the extra bytes before, and this
problem was corrected, why does my subtraction of 2 bytes from
AVGCOLLEN for each varchar column give me a result that matches
REORGCHK? This APAR seemed to imply that AVGCOLLEN accounts for all
the overhead with varchars and nulls and ISIZE can be just computed by
summing the AVGCOLLEN's of all the columns.

Any clarification on whether I need to adjust the values in AVGCOLLEN
in order to compute the correct ISIZE will be appreciated.

Thanks
Amit
Nov 12 '05 #1
0 1667

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff | last post by:
Hi, I am issuing "reorgchk update statistics on table all" and getting (after 6 minutes) SQL0911N The current transaction has been rolled back because of a deadlock or timeout. REason code "2"....
5
by: Jari Korkiakoski | last post by:
Hello, What kind of difference does it make to update statistics via 'REORGCHK UPDATE STATISTICS ON TABLE ALL' or by running directly 'runstats on table xxx.yyy with distribution and detailed...
1
by: hikums | last post by:
1. I did a reorgchk, and found that F2 on table and F4 on index indicates a reorg is necessary. 2. Did a reorg. 3. Again I do a reorgchk, the report is the same as in Step 1 4. I do a...
2
by: kuhni | last post by:
Hi everybody! After searching newsgroups for a couple of hours, I now try asking directly (running the risk of asking again the same question). My problem is to predict when the size of the...
2
by: EpsilonAurigae | last post by:
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.
1
by: doug | last post by:
Ok IBM techs. Does the REORGCHK_TB_STAT and REORGCHK_IX_STAT Stored Procedures issue a Runstats. I have ran the old REORGCHK utility with stats and both SPs and it appear that the SPs do not...
4
by: santhosh.david | last post by:
Hi, I have a query in reorgchk. When I was examining the output of reorgchk I found a column TSIZE in Table Statistics & ISIZE in Index Statistics. Can any one let me know the formula for TSIZE...
0
by: Sam Durai | last post by:
Which runstats options are specified when runstats is invoked from "reorgchk update statistics" Env : DB2 V8.2
7
by: Okonita via DBMonster.com | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.