Database Tuning (MOSC)

MOSC Banner

Optimizer choose bad plan suddenly (stats are up to date)

edited Oct 28, 2022 3:05PM in Database Tuning (MOSC) 12 commentsAnswered ✓

Dear Experts,

When Optimzer chooses bad plan, what is the best approach forcing the optimizer to choose old plan always ?

As checked Stats are up to date and no changes made on SQL Query.

Indexes are valid state and also no changes made on associated indexes.

If so , suddenly optimizer has chose bad plan and it was leading to complete the query execution longer than usual.

any best approach to resolve it ?

DB Version is 19c

Regards,

Thiyagu G

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