View query not using index
Hi All,
I have a query on a view which join another table(9i). I have proper statistics on these tables.But when I check the explain plan it shows that it is using one index and running in 8 seconds. But when I forced another index it runs in 2 seconds. Any reason?
Another point, when I gathered statistics with histograms then the oracle is not using index at and taking 30 seconds to execute. Then I gathered stats without histograms. Then at least it is using one index, not the one which was giving optimum performance though.
Please suggest ... Thank You.
Another point, when I gathered statistics with histograms then the oracle is not using index at and taking 30 seconds to execute. Then I gathered stats without histograms. Then at least it is using one index, not the one which was giving optimum performance though.
Please suggest ... Thank You.
0