473,386 Members | 1,958 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,386 software developers and data experts.

Table statistics

Hi,

I have a job that performs a runstats on tables in my database (db2 V8
on AIX) and the syntax is

db2 runstats on table schema.tabname with distribution and detailed
indexes all.

when I look at the statistics in syscat.indexes table, the values for
AVERAGE_SEQUENCE_FETCH_PAGES,AVERAGE_RANDOM_FETCH_ PAGES etc (for
prefetch statistics) is -1 which means unknown. Why is this so and
what must be turned on in order to obtain these statistics for
analysis

Thanks
Lyn
Nov 12 '05 #1
2 5056
"Lyn Duong" <ly**@tablimited.com.au> wrote in message
news:8d**************************@posting.google.c om...
Hi,

I have a job that performs a runstats on tables in my database (db2 V8
on AIX) and the syntax is

db2 runstats on table schema.tabname with distribution and detailed
indexes all.

when I look at the statistics in syscat.indexes table, the values for
AVERAGE_SEQUENCE_FETCH_PAGES,AVERAGE_RANDOM_FETCH_ PAGES etc (for
prefetch statistics) is -1 which means unknown. Why is this so and
what must be turned on in order to obtain these statistics for
analysis

Thanks
Lyn


May be because the index is too small for those stats to be meaningful so
DB2 does not collect them.
Nov 12 '05 #2
I just came across this info the other day. (lucky you)

http://publib.boulder.ibm.com/infoce...help/index.jsp
search : AVERAGE_SEQUENCE_FETCH_PAGES
See sysstat.indexes catalog view
1.. When using DMS table spaces, this statistic cannot be computed.
2.. Prefetch statistics are not gathered during a LOAD...STATISTICS YES,
or a CREATE INDEX...COLLECT STATISTICS operation, or when the database
configuration parameter seqdetect is turned off.
PM

"Lyn Duong" <ly**@tablimited.com.au> a écrit dans le message de
news:8d**************************@posting.google.c om...
Hi,

I have a job that performs a runstats on tables in my database (db2 V8
on AIX) and the syntax is

db2 runstats on table schema.tabname with distribution and detailed
indexes all.

when I look at the statistics in syscat.indexes table, the values for
AVERAGE_SEQUENCE_FETCH_PAGES,AVERAGE_RANDOM_FETCH_ PAGES etc (for
prefetch statistics) is -1 which means unknown. Why is this so and
what must be turned on in order to obtain these statistics for
analysis

Thanks
Lyn

Nov 12 '05 #3

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

Similar topics

1
by: Jay | last post by:
Hi I have a huge table with over 100million records and on regular basis ineed to delete nearly a million records and insert a million records. Currently I delete indexes before going through the...
5
by: garydevstore | last post by:
Hi, I have a table defined as CREATE TABLE ( IDENTITY (1, 1) NOT NULL , NULL , NULL , NOT NULL , NULL , (255) COLLATE SQL_Latin1_General_CP1_CS_AS
3
by: dunleav1 | last post by:
I am trying to write a sql script to estimate size and count of rows of all tables and indexes within a schema. Here's what I have so far but need a little help. #$1 is database name and $2 is...
16
by: UDBDBA | last post by:
Hi All: I need some clarification on a MERGE statement. The database is on V8 FP12 (AIX) 64bit. The source table is tableA. The target is a View "FACT" with UNION ALL because of the 512 Gig...
4
by: Chris | last post by:
Can't seem to figure out how to do this and have been reading for some time now...... I want to select a row count from a table name in SYSTABLES. This statement does not return what I needed,...
3
by: Otto Carl Marte | last post by:
>From the IBM db2 docs: http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/t0005308.htm it says that volatile tables (ALTER TABLE mytable VOLATILE...
2
by: Rahul B | last post by:
Hi, I dropped a not null column from a table. After that i reorganized the table. However, an update statement is giving error like "(Reason "column number out of range".) SQLSTATE=58004" ...
0
by: Vinod Sadanandan | last post by:
Table Partition Performance analysis ============================================ Collection of Statistics for Cost-Based Optimization/DBMS_STATS vs. ANALYZE The cost-based approach relies on...
2
by: Ralf | last post by:
Hi, is it possible to programmatically update table statistics by executing SQL-statements via Jdbc-driver? My DB-application fills an initially empty table with a huge number of rows and I try...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.