Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


Reg:Performance of a DB2 query

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DB2 SQL - DB2 PROGRAMMING
  View previous topic :: View next topic  
Author Message
156138
Member


Joined: 29 Aug 2006
Posts: 15
Location: Chennai

PostPosted: Fri Sep 15, 2006 4:07 pm    Post subject: Reg:Performance of a DB2 query Reply with quote

Can anyone explain how to analyse the performance of a DB2 query
using EXPLAIN (ENDEVOR tool).
_________________
Regards,
Vinod Reddy.
Back to top
View user's profile Send private message Yahoo Messenger

ovreddy
Member


Joined: 07 Oct 2006
Posts: 14
Location: Chennai

PostPosted: Sat Oct 07, 2006 4:30 pm    Post subject: Reply with quote

Hi,

EXPLAIN statement inserts a row into PLAN TABLE usually named as PLAN_TABLE. This table contains several columns used to estimate cost for executing a query.

After executing EXPLAIN. Use select statement on PLAN_TABLE to see the cost of execution.

Thanks,
Reddy.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Krishna
Site Admin


Joined: 27 Jan 2006
Posts: 929

PostPosted: Mon Oct 09, 2006 10:43 am    Post subject: Reply with quote

Good Information!!!



Thanks,
Krishna
Back to top
View user's profile Send private message Send e-mail
156138
Member


Joined: 29 Aug 2006
Posts: 15
Location: Chennai

PostPosted: Wed Nov 15, 2006 12:43 pm    Post subject: Reply with quote

Reddy, Thanx for information , i know that the results will be put in a PLAN_TABLE.

When you select * from PLAN_TABLE depending on which column will u able to decide the query is ok.

One thing is depending on index usage.

Second there are two cost columns PROCMS and PROCSU.
Do you know the maximum possible values for the above two columns,so that we can able to tell the query is performing well.
_________________
Regards,
Vinod Reddy.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DB2 SQL - DB2 PROGRAMMING All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts main & sub programs using the same table !! 1 arrbee 2638 Tue Mar 10, 2009 3:02 pm
Anuj Dhawan View latest post
No new posts db2 query 4 thiyagucse 5589 Fri Aug 29, 2008 10:31 am
Krishna View latest post
No new posts How to find out the record length using tso command? 4 bsriram 9119 Fri Oct 26, 2007 12:17 am
varun View latest post
No new posts how submit cobol,cics,db2 program using jcl 1 pankaj 5608 Wed Apr 12, 2006 12:05 pm
arrbee View latest post
No new posts How to write a JCL using IEBCOMPR 4 IEBCOMPR 10478 Mon Apr 03, 2006 12:23 pm
rangab View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB