SQL Performance (MOSC)

MOSC Banner

quick way to check sql has sql plan control during execution

edited Oct 9, 2016 5:13AM in SQL Performance (MOSC) 3 commentsAnswered

Hello Oracle Gurus,

Suppose if a sql already has one of the 4 sql-plan control... Stored Outline, SQL Profile, SQL Patch or SQL Plan Baseline.What is the fastest/easiest way that i could check that there was a sql-plan control associated with the sql [ but was ignored(due to some reason) during execution]..

I am aware that v$sql has SQL_PROFILE,SQL_PATCH,SQL_PLAN_BASELINE,OUTLINE_CATEGORY columns..that can say whether any of them was used or not...it does not have a column that says there is sql-plan control in place ...so do we need to check views related to  SQL_PROFILE,SQL_PATCH,SQL_PLAN_BASELINE,OUTLINES to see that there is sql-plan control already in place for a  sql  (in execution) everytime...especially if we have lot of sql plan controls in the database for different sqls.

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