Database Tuning (MOSC)

MOSC Banner

Concern on tkprof output

edited Mar 14, 2020 2:13AM in Database Tuning (MOSC) 2 commentsAnswered ✓

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center