We had an issue in production database which is Oracle 11gR2 - 11.2.0.4.0. Users started complaining about the slow running queries and we found out a particular SQL as TOP SQL impacting performance. Upon running the SQL Profile on this query that used to be taking 467 Seconds to execute started getting run in .277 seconds.
Why and when the optimizer started bad plan for this particular SQL and how can we find out what triggered the optimizer pick up the bad plan.
Regards,