12c optimizer generate bad plan, what will you do?
Hi,
I am using Oracle 12.1.0.2 with
optimizer_features_enable=12.1.0.2
We have a SQL which return the result within 1-2 seconds in 11g but in 12c,
the same SQL generate an adaptive plan which ran hours...
I have to change optimizer_features_enable=11.2.0.3 to get the Oracle to generate back the good plan.
Does anyone know if there any better solution instead of limit the 12c optimizer functility?
Thanks
Pek