Concern on tkprof output
Hi Experts,
Our database version 12.1.0.2
Our concern is
1)Will tkprof output contain actual execution plan used at runtime or just estimated plan?
Below taken from internet and this made be to post this question.
If you do "tkprof explain=", then we are actually *running* an explain plan command on the SQL's we encounter in the trace file. So its quite possible that those plans do not match the ones that were actually used during execution.
However, if statistics_level = all, or any other combination of settings has been used to capture rowsource details in the raw trace file, then the formatted tkprof file will contain the *actual* plan used.