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....
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.