whenever asking this type of questions, it is necessary to state OS used (and version) and also DB2 version.
As you stated on your other post that it its on a Mainframe, then there are lots of ways to do it, although some not very easy to use.
As a first step, see if your shop has DB2-Insight.
This will tell you which packages run, what was the IO performed (e.g. number of pages read, updates/fetches/selects) and some other useful information. You have to then look at it and see which packages took longer to run.
The history information is normally held for a few days in many shops, so it should still be available.
As Marc said, you also need to look at the plan table of the packages involved, and look out of lack of index access(or poor index usage), merge scans, hybrid joins and such.
Depending on your version of DB2, you may also be able to avail of IBM Performance Expert. See IBM.com for information on the available IBM tools, and also read the manuals available at
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.