quick way to check sql has sql plan control during execution
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.