473,396 Members | 2,057 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,396 software developers and data experts.

question on index usage

Hi,
is there any way in db2 v8.2.3 (fp10) on aix 5.3 to know if indexes on table
are used.
The only method i know is to create an event monitor on statement and then
pass this worload to the design advisor. Is there a faster way.
Again, i some some queries that worked better on db2 v8.1. I migrated this
into db2 v8.2 and those queries take table fullscan now instead of hash
join.
I guess that the optimser changed between these two versions but not in the
right direction.
I've made a full db reorg + full runstats + rebind.

thx
Feb 8 '06 #1
3 2758
The db2pd command/tool should help you here.

db2pd -d <dbname> -tcbstats index

The output will give you activity on the indices from the DB2 point-of-view
(page deletes, etc.) ... but at least it will tell you which indices are
never used over time.

Bob

"paul" <no****@nomail.com> wrote in message
news:3810FD4EAD8AD611A50D00805F0DA7FA08D59F55@DUN-COM-NEWS02...
Hi,
is there any way in db2 v8.2.3 (fp10) on aix 5.3 to know if indexes on table are used.
The only method i know is to create an event monitor on statement and then
pass this worload to the design advisor. Is there a faster way.
Again, i some some queries that worked better on db2 v8.1. I migrated this
into db2 v8.2 and those queries take table fullscan now instead of hash
join.
I guess that the optimser changed between these two versions but not in the right direction.
I've made a full db reorg + full runstats + rebind.

thx

Feb 8 '06 #2
thx that sould work fine

"Bob [IBM]" <Bo********@gmail.com> wrote in message
news:44************@individual.net...
The db2pd command/tool should help you here.

db2pd -d <dbname> -tcbstats index

The output will give you activity on the indices from the DB2 point-of-view (page deletes, etc.) ... but at least it will tell you which indices are
never used over time.

Bob

"paul" <no****@nomail.com> wrote in message
news:3810FD4EAD8AD611A50D00805F0DA7FA08D59F55@DUN-COM-NEWS02...
Hi,
is there any way in db2 v8.2.3 (fp10) on aix 5.3 to know if indexes on

table
are used.
The only method i know is to create an event monitor on statement and then pass this worload to the design advisor. Is there a faster way.
Again, i some some queries that worked better on db2 v8.1. I migrated this into db2 v8.2 and those queries take table fullscan now instead of hash
join.
I guess that the optimser changed between these two versions but not in

the
right direction.
I've made a full db reorg + full runstats + rebind.

thx

Feb 8 '06 #3
paul wrote:
Hi,
is there any way in db2 v8.2.3 (fp10) on aix 5.3 to know if indexes on table
are used.
The only method i know is to create an event monitor on statement and then
pass this worload to the design advisor. Is there a faster way.
Again, i some some queries that worked better on db2 v8.1. I migrated this
into db2 v8.2 and those queries take table fullscan now instead of hash
join.
I guess that the optimser changed between these two versions but not in the
right direction.
I've made a full db reorg + full runstats + rebind.

thx

Query Patroller will also provide this type of functionality, but it is
an extra cost feature.

Larry Edelstein
Feb 8 '06 #4

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

Similar topics

0
by: David Stockwell | last post by:
Hi, After looking at http://docs.python.org/lib/module-mailbox.html I am a bit confused. The bottom of the page refers to some shortcut usage for getting a mail box import email import...
6
by: Heiko | last post by:
Hello, is there any way (v$-view) to get informaion about how often an index hast been used since of starting the Database? Thanks for help Heiko
4
by: inline_four | last post by:
If I have a table with multiple foreign keys to various other tables, what's the best way to index them: one index that contains all of those columns, or multiple indexes containing one foreign key...
13
by: MissLivvy | last post by:
I recently came across a database where the data are horizonally partitioned into 4 tables. I'm not sure if this was a poor design choice, or if it was done for valid performance reasons. The...
6
by: PengYu.UT | last post by:
Hi, Suppose I have the following class declaration with a pointer as the argument. And suppose I "new" an array "lengths" as the argument "edge_lengths". Now, the polygon object is valid....
8
by: Andr? Queiroz | last post by:
Hi, I have a table with 10M records and col A has a index created on it. The data on that table has the same value for col A on all 10M records. After that I insert diferent values for that column...
2
by: SKC | last post by:
Is there a way to find the following in UDB ? 1. How many times an index is used for a duration ? 2. Which SQL/application is using the index? if not, is there a different way to find it ?
7
by: chessplayer | last post by:
Greetings Folks, I am trying to understand how DB2 locks data and can't believe my eyes. Have read the literature about the difference isolation levels and have a general understanding about...
27
by: karan.shashi | last post by:
Hey all, I was asked this question in an interview recently: Suppose you have the method signature bool MyPairSum(int array, int sum) the array has all unique values (no repeats), your...
3
by: Michel Esber | last post by:
Hi all, Db2 v8 FP15 LUW . create table T (ID varchar (24), ABC timestamp) There is an index for (ID, ABC), allowing reverse Scans. My application needs to determine MIN and MAX(ABC) for a...
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: 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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.