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

Historic data on index utilisation?

DB2 7.2 on AIX 5.2.

I'm looking to remove redundant indexes.

The GET SNAPSHOT FOR ALL command does not appear to include historic
data for index utilisation. Can anyone give me any tips outside using
EXPLAIN on each bit of SQL code?

Thank you, and a healthy 2004.
Nov 12 '05 #1
3 1598
Have you tried running the index advisor (not sure if it was there in
V7): "db2advis"?

Larry Edelstein

Bruce Pullen wrote:
DB2 7.2 on AIX 5.2.

I'm looking to remove redundant indexes.

The GET SNAPSHOT FOR ALL command does not appear to include historic
data for index utilisation. Can anyone give me any tips outside using
EXPLAIN on each bit of SQL code?

Thank you, and a healthy 2004.


Nov 12 '05 #2
Bruce,

Except the explain and use of the db2advis utility, there is no way out.
Yes, I'd like to have a SNAPSHOT FOR INDEXES in a future version of DB2 UDB
to check index reads; Oracle has implemented an analyze mode for indexes in
version 9i. That would help and avoid this fastidious task to be sure to get
the complete workload.

Regards,

Jean-Marc

"Bruce Pullen" <br**********@hotmail.com> a écrit dans le message de
news:9d**************************@posting.google.c om...
DB2 7.2 on AIX 5.2.

I'm looking to remove redundant indexes.

The GET SNAPSHOT FOR ALL command does not appear to include historic
data for index utilisation. Can anyone give me any tips outside using
EXPLAIN on each bit of SQL code?

Thank you, and a healthy 2004.

Nov 12 '05 #3
FWIW ... I believe the V8.1 Query Patroller product will provide this type of information? Maybe others more knowledgeable in the product can comment ... I believe that with QP V8.1 (and yes I know the poster was using V7.2 - do not know if it is available in V7.2 or not):


-Using Historical Analysis feature, we can find the following:

- queries run by users

- what tables are accessed and how many times
- what tables are not touched by queries
- what indexes are accessed any how many times
- what indexes are not touched by queries

- submitter information

--

Bob
Engagement Specialist - IBM Software Services for Data Management
IBM Toronto Lab
[My comments are solely my own and are not meant to represent an official IBM position - ask my cat!]
"Jean-Marc Blaise" <no****@nowhere.com> wrote in message news:bs**********@news-reader2.wanadoo.fr...
Bruce,

Except the explain and use of the db2advis utility, there is no way out.
Yes, I'd like to have a SNAPSHOT FOR INDEXES in a future version of DB2 UDB
to check index reads; Oracle has implemented an analyze mode for indexes in
version 9i. That would help and avoid this fastidious task to be sure to get
the complete workload.

Regards,

Jean-Marc

"Bruce Pullen" <br**********@hotmail.com> a écrit dans le message de
news:9d**************************@posting.google.c om...
DB2 7.2 on AIX 5.2.

I'm looking to remove redundant indexes.

The GET SNAPSHOT FOR ALL command does not appear to include historic
data for index utilisation. Can anyone give me any tips outside using
EXPLAIN on each bit of SQL code?

Thank you, and a healthy 2004.

Nov 12 '05 #4

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

Similar topics

0
by: Carsten Kring | last post by:
We are developing a sevlet-based web-application which will supply the user with real time and historic currency information. For the historic currency information we need a graph Java applet: ...
11
by: jong | last post by:
I have a problem with an C# application. The application is a 24x7 low volume message processing server. The server has a single thread of processing, running in a continuous loop, for each...
0
by: Bruce Pullen | last post by:
DB27.2 on AIX 5.2. KEEPDARI = YES MAXDARI = 50 I'm investigating memory paging caused, I believe, by a specific memory-hungry stored procedure and have some questions! 1) Is there a memory...
3
by: Scottie_do | last post by:
I have a 20meg in-memory stack-based array and I'd like to normalise in the client's memory... then add foriegn keys, and display results on a datagrid. I discovered that converting the stack to a...
7
by: reachsamdurai | last post by:
Hello, I'm looking for a method to check the utilization of index by any SQL (Static and Dynamic) at the database level instead of generating the access plan for each SQL. I have inherited a...
2
by: narasimha435 | last post by:
how to find the cpu utilisation ratio in linux and unix
0
by: NagarajanS | last post by:
Hi, i created windows form .when i try to move any other application over my form like a calc form the cpu utilisation moves to 100%. why is this happening? and how i can eliminate that? Regards,...
10
by: Nils Magnus | last post by:
Hello, I've just started using SQL to LINQ to access my SQL Server tables, and it's a wonderful tool. Are there any equally elegant ways to store and access historic values for the objects? For...
10
by: Ian | last post by:
Henry J. wrote: MDC *guarantees* clustering, whereas a table with a clustering index will eventually require maintenance (a.k.a. reorg) to maintain the cluster ratio. That's not to say that...
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.