What should be value of OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES after upgaring to 11gR2
We are migrating the database from 10gR2 (10.2.0.4) to 11gR2(11.2.0.3), please suggest what we should set the parameter value at system level.
What would be the issue if we are setting the value of OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES as TRUE in production after upgrading to 11gR2.
I have set the value in our test environment OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=TRUE but we are facing issues the sql statement with overall cost (from plan) is less is consuming lot of time and running for ever.
e.g. in the belo case Plan hash value: 316183506 cost is 10760 and Plan hash value: 3772300390 cost is 21023 but the sql basline is created with Plan hash value: 316183506 cost is 10760 .