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

Indexing on Catlog Tables


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

New User


Joined: 21 Jun 2006
Posts: 9
Location: Zurich

PostPosted: Fri Jul 27, 2007 3:37 pm
Reply with quote

Hi all,

I have a small DB2 tool in Rexx and using the DSNREXX to connect with DB2.

This tool generates some catalog information in my desired format and have complex queries on DB2 catlog tables. But, unfortunately, I am not getting the good performance. There may be chance of improving my queries and that I would try to. But, I am just exploring the possibility of creating some indexes.

So, my questions are,
1) Can I create Indexes on Catlog Tables in any of my personal TABLESPACE ?
2) If yes, then How to make my query to use this Index in Rexx ?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Mon Jul 30, 2007 1:42 am
Reply with quote

1) You can only create an index on the tables in their own TABLESPACE as far as I know. Try it and find out.
2) DB2 determines if it wants to use an index for your query, not you. DB2 will optimize as best as possible using available indexes it find.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Question regarding ISPF tables with T... TSO/ISPF 11
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts How to: PK does not exist in several ... DB2 6
No new posts array indexing PL/I & Assembler 4
Search our Forums:


Back to Top