Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Explain plan

Status
Not open for further replies.

val02

Programmer
Jul 29, 2002
5
IN
Hi All

I am learning DB2, I want to know is there is anything similar to Explain plan in Oracle, which can be used to view the statistics for the query like..physical read, sorts, whether query is using indexes etc....

Thanks and Regards

Val
 
Hi Val,

there is indeed. The best way to get started is to use the Command Center. Connect to your database, then enter a query and select Script->Create Access Plan.

If the explain tables have not been created before, you'll need DBA access to do that.

There are entire books written about this topic. See the DB2 docs, Administration Guide : Performance, chapter 7 for (much) more detail.

Let me know if you run into any problem.

-- Max
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top