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 > Explain

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-05, 05:14
cmarquez cmarquez is offline
Registered User
 
Join Date: Feb 2005
Posts: 1
Explain

I need a manual about EXPLAIN/SQL
Reply With Quote
  #2 (permalink)  
Old 02-22-05, 05:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
First try the Must Read Before Posting thread. Then move on to the Useful DB2 Stuff thread.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-22-05, 09:47
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
create access plan

The CREATE ACCESS PLAN from the command center (in db2 ver7.2 for windows) creates a visual display of the access path for the SQL in the script. The visual display can be seen by clicking on the ACCESS PLAN tab on the command center.
Is it this facility that is called the visual explain or is it something that needs to installed seperately ?

Anil
Reply With Quote
  #4 (permalink)  
Old 02-22-05, 14:23
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The EXPLAIN functionality depends on which operating system DB2 is running on (OS/390, UNIX etc.), but it comes with DB2 and does not have to be installed separately. However, in some cases it may be necessary to run some IBM supplied DDL to create the DB2 tables used for EXPLAIN.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 02-22-05, 22:47
AnilKale AnilKale is offline
Registered User
 
Join Date: Feb 2005
Posts: 118
I am using a DB2 UDB ver 7.2 client on Windows 2000. How would I invoke the tool VISUAL EXPLAIN ?
Now if I go the command center, there are four tabs 'Interactive, Script, Query Results, and Access Plan'. Now depending on which tab you click, the menu bar options change. for 'interactiev', and 'script' tabs, there is also a corresponding option in the menu bar. If you click on the menu bar option (say for tab 'script', menu bar option 'script'), there is an option CREATE ACCESS PLAN.
Then after executing the script click on the tab 'Access Plan', and this time you can use the different access plan menu options to view the explained SQL.
So my question is, is it this feature that is called VISUAL EXPLAIN, or is it a different option like CLP, CCA, CC etc

thanks.
Anil
Reply With Quote
  #6 (permalink)  
Old 02-23-05, 00:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There is a batch explain program called db2expln and the related explain table format tool called db2exfmt. See the Command Reference.

I don't recall if V7 has visual explain (V7 is no longer supported by IBM) but if it did exist, it was an option in the Control Center (maybe right click option?). I don't have a V7 client to check, so I don't recall.

You could try searching the Master Index manual for Version 7.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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