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 > DB2 optimizer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-04, 15:05
mark_maz mark_maz is offline
Registered User
 
Join Date: Feb 2002
Location: Hamilton
Posts: 138
DB2 optimizer

We are running DB2 EEE V7.2 FP6 on AIX 5.1 on 2 servers with 3 nodes.

We are trying to find out when a query will use table scans and or indexes to get it's result set back. Is there a way to see the access path taken by the query using native DB2 utilities? If so how?

thanks in advance

mark
Reply With Quote
  #2 (permalink)  
Old 01-29-04, 15:09
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Mark,
You can use EXPLAIN. Also you could use the Command Center, turn on the option to generate an access plan.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 01-30-04, 03:45
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: DB2 optimizer

There are a couple of options :

1) Visual Explain
Explain output is in graphical format. USe Command Centre.
2) db2expln
Explains the contents of a package. Issued from OS command line
3) dynexpln
Explains dynamic statements. The input to the command is a set of SQL Statements.
4) db2exfmt
Formats the contents of the EXPLAIN Tables ... Text 'Equivalent' of visual explain ...


Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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