wrong indexes has been used after collect table statistics
We run into something funny here.
We have a Oracle 10.2.0.4 database. It used by SAP.
We have about 300millions row in one big table, and recently we collected statistics for this table. However suddently, the performance went down. A daily task usually only take 30mins but it takes 18hours now. Somehow after collected statistics, Oracle start to use another index, a wrong index, for this query.
Eventually we have to restore the old statistics, then Oracle picked up the right index to do the job. And performance went back to normal.
Any suggestions? Any clue what is the root cause?