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

Explain Utility


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

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Fri Jul 09, 2010 2:43 pm
Reply with quote

Hi,

could you pleae let me know the usage of EXPLAIN utility and where we are handling?

Regards,
Prabha
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 09, 2010 2:52 pm
Reply with quote

5.58 EXPLAIN SQL REFERENCE

6.4 Chapter 6-4. Using EXPLAIN to improve SQL performance SQL Appl Programmers guide

also, talk to your db2 support to determine what facilities already exist.
it may be that your site has VISUAL Explain.
Back to top
View user's profile Send private message
LearningDb2

New User


Joined: 19 Jun 2009
Posts: 40
Location: India

PostPosted: Fri Jul 09, 2010 5:31 pm
Reply with quote

Hi Prabha,

We use Explain to collect the information abt the access path used by the optimizer for the statement which is explainable.
Suppose you have a stored procedure having hundred's of SQL statements.Then u can use Explain for the sql's whose access path u want to see.Eg:- whether the predicates that u have specified in the select clause are using proper indexes or not.

We assign a query number through which we identify that statement in user created PLAN_TABLE.

Eg-: exlpain all set query number = nn for select.......(explainable statement)

All the informations derived by the Explain are stored in PLAN_TABLE.
Usually GroupID.PLAN_TABLE.

For the description of the columns of Plan_table you can hv a look at SQL reference(Statements-Explain).

Hope this Helps.

Thanks
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 REASON 00D70014 in load utility DB2 6
No new posts DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
Search our Forums:

Back to Top