Optimizer choose bad plan suddenly (stats are up to date)
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