If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Database Indexes Usages Tracking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-11, 05:19
db2champ db2champ is offline
Registered User
 
Join Date: Jul 2011
Posts: 46
Database Indexes Usages Tracking

Hi,
I have few question related to tracking of Indexes usages on DB2.

(1) How to get information about unused indexes on database?
(2) How to get information about missing indexes\ Required indexes on database?

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-16-11, 05:27
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
in 9.7 luw fp(?)
there are some new columns in the catalog : last_used
they can give an indication if an index has never been used
missing indexes : monitor long running queries - doing tablescan....collect workload - explain
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 12-16-11, 05:49
db2champ db2champ is offline
Registered User
 
Join Date: Jul 2011
Posts: 46
Can you please give reference of related catalogs.
Reply With Quote
  #4 (permalink)  
Old 12-16-11, 06:09
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
all info is over here
IBM DB2 9.7 for Linux, UNIX and Windows Information Center
look at sysibm syscat....
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 12-19-11, 00:18
amitrai4 amitrai4 is offline
Registered User
 
Join Date: Aug 2011
Posts: 46
db2pd -d <dbname> -tcbstats all , will give index usage statistics since database activation, you may want to consider, apart from lastused column from syscat.indexes .

for required indexes try db2advis
Reply With Quote
Reply

Tags
indexes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On