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 > Tuning/Adding indexes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-04, 15:10
vmlal vmlal is offline
Registered User
 
Join Date: Sep 2003
Posts: 212
Post Tuning/Adding indexes

Noob question:

How do u go about adding indexes in tables in DB2 and optimizing the database.
I have DB2 installed on Windows as well as an AIX server.

For Windows: Control Center?

Any help would be good
thx
Reply With Quote
  #2 (permalink)  
Old 06-01-04, 18:14
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You can use the create index SQL statement or create an index using the Control Center. There is an index advisor that is available for use, but don't expect it to be perfect. A knowledgeable DBA with an understanding of the application and how the data is accessed is the best solution.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 06-01-04 at 18:27.
Reply With Quote
  #3 (permalink)  
Old 06-01-04, 20:08
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by vmlal
Noob question:

How do u go about adding indexes in tables in DB2 and optimizing the database.
I have DB2 installed on Windows as well as an AIX server.

For Windows: Control Center?

Any help would be good
thx
Recently, I've found the desing advisor useful, you can launch it from the Control Center. Start with your WHERE and ORDER BYs... run slow queries through Explain...

"A knowledgeable DBA with an understanding of the application and how the data is accessed is the best solution."

We're not that expensive
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
Reply

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