Database Tuning (MOSC)

MOSC Banner

Same sql statement gets by first run an execution-plan after the second execution another much bette

edited Jun 1, 2012 8:29PM in Database Tuning (MOSC) 20 commentsAnswered
Hello,
we upgrade our 10.2.0.4 Database to 11.2.0.3 (O.S.: IBM AIX 5.3)
After the upgrade, by many SQL Statement we get following behavior:

1. First execution (a badly explain-plan) Elapsed-Time= 100 min
2. Second execution we get a much better explain-plan than the first one. Elapsed-Time = 10 min
3. All others executions worked with the execution-plan generated by the second run. Elapsed-Time = 1 min

On 10g we get by every run the same execution-plan. Why ist the Optimizer getting smarter by the second execution of the exactly same sql statement? We are using constant, NO Bind Variables.

Instance parameters optimizer_% wasn't changed, all with default 11.2.0.3 Values.

Any Ideas,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center