Why does a hard parse for a complex sql query using some views take longer after upgrade to 12.1.0.2
Hello,
we have an complex SQL query which uses a with block and some views. In Oracle 11.2.0.x it takes 8 seconds for parsing the statement for the first time. After upgrading to Oracle 12.1.0.1/2 parsing the same query takes 45 seconds.
If we use the hint /*+ optimizer_features_enable('11.2.0.2') */ the parse time is already 8 seconds again.
We would prefer that we do not need this hint.
What can cause this long parse time in Oracle 12?
Any idea?