Reg:Performance of a DB2 query

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
156138
Member
Posts: 15
Joined: Tue Aug 29, 2006 7:27 pm
Location: Chennai

Reg:Performance of a DB2 query

Post by 156138 » Fri Sep 15, 2006 4:07 pm

Can anyone explain how to analyse the performance of a DB2 query
using EXPLAIN (ENDEVOR tool).
Regards,
Vinod Reddy.

ovreddy
Member
Posts: 14
Joined: Sat Oct 07, 2006 4:13 pm
Location: Chennai
Contact:

Post by ovreddy » Sat Oct 07, 2006 4:30 pm

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.

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Mon Oct 09, 2006 10:43 am

Good Information!!!



Thanks,
Krishna

156138
Member
Posts: 15
Joined: Tue Aug 29, 2006 7:27 pm
Location: Chennai

Post by 156138 » Wed Nov 15, 2006 12:43 pm

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.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others