Thanks Serge,
The information is indeed very helpful. I am able to set the event for
a particular applid and trace the stements issued.
Will there be an enhancement (or is it already there) to show the path
the optimizer really took executing the statements. (I am looking for
something similar to sql_trace, "set events 10046 .., level n" in
oracle).
Note: I can extract the SQLs from dbevmon output and do the explain.
But this doesn't gaurantee that the plan generated when doing explain
is same as the one while executing the dynamic statement (something
might have changed by then).
----------------------------------------------------------------------------
Serge Rielau <sr*****@ca.eye-be-em.com> wrote in message news:<c1**********@hanover.torolab.ibm.com>...
Erik,
Indeed. Such a facility is part of the LEO project (after all a learning
optimizer must do the bean-counting before it can learn).
Cheers
Serge