472,799 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 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 5024
"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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.