<se*****@yahoo. comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
Hi,
I find the "snapshot for dynamic sql" a great tool for identifying
the most frequently executed dynamic sql statements, most cpu used,
etc. It is a great help for system tuning. My understanding is it
does not display static sql statements. Is a statement event monitor
the only way to capture the same information for static sql in
packages?
Lew
REBIND will re-explain packages that were created with the explsnap bind
option set to YES or ALL (indicated in the EXPLAIN_SNAPSHO T column in the
SYSCAT.PACKAGES catalog table entry for the package) or with the explain
bind option set to YES or ALL (indicated in the EXPLAIN_MODE column in the
SYSCAT.PACKAGES catalog table entry for the package). The Explain tables
used are those of the REBIND requester, not the original binder.
If the package was not bound with explsnap YES or ALL, you can do a BIND
REPLACE.
Then you can use the db2exfmt command to format reports from the explain
tables.