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

table changes since last runstats?


Probably a stupid question, but is there an easy way to determine how
much a table has changed since last time stats where updated? What I'm
trying to figure out is whether there is a need to do runstats on a
particular table or not.

Thanx
/Lennart
Mar 19 '08 #1
3 1764
Ian
Lennart wrote:
Probably a stupid question, but is there an easy way to determine how
much a table has changed since last time stats where updated? What I'm
trying to figure out is whether there is a need to do runstats on a
particular table or not.

Thanx
/Lennart
The DB2 Health monitor tracks this, but I don't think that this is
externalized. But you could certainly leverage health monitor to
notify you when it thinks a table needs to have its statistics
updated.

Mar 19 '08 #2
Ian wrote:
Lennart wrote:
>Probably a stupid question, but is there an easy way to determine how
much a table has changed since last time stats where updated? What I'm
trying to figure out is whether there is a need to do runstats on a
particular table or not.

Thanx
/Lennart

The DB2 Health monitor tracks this, but I don't think that this is
externalized. But you could certainly leverage health monitor to
notify you when it thinks a table needs to have its statistics
updated.
And in DB2 9.5 you can leave it to DB2 end to end...

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 19 '08 #3
On Mar 19, 11:46 pm, Serge Rielau <srie...@ca.ibm.comwrote:
Ian wrote:
Lennart wrote:
Probably a stupid question, but is there an easy way to determine how
much a table has changed since last time stats where updated? What I'm
trying to figure out is whether there is a need to do runstats on a
particular table or not.
Thanx
/Lennart
The DB2 Health monitor tracks this, but I don't think that this is
externalized. But you could certainly leverage health monitor to
notify you when it thinks a table needs to have its statistics
updated.

And in DB2 9.5 you can leave it to DB2 end to end...
Thank you Ian and Serge.

/Lennart
Mar 20 '08 #4

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

Similar topics

7
by: Bing Wu | last post by:
Hi Folks, I have a very large table containing 170 million rows of coordinats: CREATE TABLE "DB2ADMIN"."COORDINATE" ( "FID" INTEGER NOT NULL , "AID" INTEGER NOT NULL , "X" REAL NOT NULL ,...
7
by: sql-db2-dba | last post by:
Does DB2 just fudge it when it is an empty table? Is there a "formula" for average row size when you have variable length records. Or you really have to know what your application is packing into...
2
by: Simon Gilbert | last post by:
Hi all, I have a database with a table containing millions of rows (3600000). When I do a select on this table, the performance decreased due to big volume of data. Does someone knows the...
11
by: Hemant Shah | last post by:
Folks, I have a perl script that creates and uses global termporary table. This script worked fine with UDB 7.2 on AIX. Sometime ago I moved the database to UDB 8 on Linux. The select statement...
20
by: Guru | last post by:
Hi I have a table which contains number of rows. I want to fetch the last 5 records from the table. I know for the first 'n' records we can use FETCH FIRST n ROWS ONLY command. But i want to...
7
by: Zri Man | last post by:
I have searched far and wide (not wide enough some might chip in) but cannot find the syntax for creating a staging table for an MQT. IBM manuals talk long and longer in serveral sections of this...
5
by: Sam Durai | last post by:
Do db2 system catalog table require maintenance (reorg/runstat) ? Thanks, Sam
9
by: shanevanle | last post by:
I have two tables that are pretty big. I need about 10 rows in the left table and the right table is filtered to 5 rows as well. It seems when I join the tables in the FROM clause, I have to...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.