IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Obsolete plan and index


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Mon Oct 19, 2009 5:51 pm
Reply with quote

We are planing to remove obsolete(not need or outdated ) plans and index... Please let me know which querywe can use and create some plan/index initial report.
Back to top
View user's profile Send private message
Steve Davies

New User


Joined: 15 Oct 2009
Posts: 32
Location: UK

PostPosted: Mon Oct 19, 2009 6:01 pm
Reply with quote

What is the criteria so you know if they are not needed or outdated ? icon_confused.gif
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Mon Oct 19, 2009 6:14 pm
Reply with quote

Plan is not accessd for long time and index alos..
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Oct 20, 2009 12:39 pm
Reply with quote

In DB2 V8 there is no way of knowing when an index or plan (or better package) has last been "accessed".

For Indexes :
If you only have static SQL and all your programs have been explained you could check the plan_table. But even then Indexes that are needed for R.I. could be not in the plan_table but still be very needed for the performance of your application.

In DB2 9 there is a column LASTUSED in SYSIBM.SYSINDEXSPACESTATS.


For plans and packages :
You should know which programs are running on your system based on info outside of DB2. Based on that you would know which packages are still needed.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
No new posts Secondary index error while loading d... IMS DB/DC 2
Search our Forums:

Back to Top