You run the SQL Tuning Advisor (STA) to tune a SQL statement that is part of a fixed SQL plan baseline. The
STA generates a SQL profile for the SQL statement, which recommends that you accept the profile.
Which statement is true when you accept the suggested SQL profile?
A.
The tuned plan is not added to the SQL plan baseline.
B.
The tuned plan is added to the fixed SQL plan baseline as a fixed plan.
C.
The tuned plan is added to the fixed SQL plan baseline as a nonfixed plan.
D.
The tuned plan is added to a new nonfixed SQL plan baseline as a nonfixed plan.
Explanation:
15.4 Using Fixed SQL Plan Baselines
When you tune a SQL statement with a fixed SQL plan baseline using SQL Tuning Advisor, a SQL profile
recommendation has special meaning. When the SQL profile is accepted, the database adds the tuned plan to
the fixed SQL plan baseline as a non-fixed plan. However, as described above, the optimizer does not use thetuned plan when a reproducible fixed plan is present. Therefore, the benefit of SQL tuning may not be realized.
To enable the use of the tuned plan, manually alter the tuned plan to a fixed plan by setting its FIXED attribute
to YES.