Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Analyze table compute statistics adversely affects optimizer?
Dear all,
>Could this cause the database to switch which optimizer it uses, cost based
>as opposed to rule based.
>What is going on?
I had similar problems. Performance was reasonable without any statistics produced. After COMPUTE STATISTICS Oracle7 choose the wrong execution plans.
I called Oracle support and to my big surprise they answered that the Oracle optimizer is not working properly in Oracle7. In Oracle 8 we are getting a complete rewrite of the optimizer so relying on it is not wise.
He adviced me NEVER to COMPUTE STATISTICS but to use optimizer hints in my SQL to be explicit which index should be used etc.
Regards Gerrit-Jan Linker,
*| Gerrit-Jan Linker : gjlinker_at_aol.com *| *| http://members.aol.com/gjlinker *| *| Developer of: *| Oraxcel, OraWeb, OraSQL, OraCodes and OraDebug ************************************************* LLLL IIII TTTTTTTTTTTT LLLL IIII TTTTTTTTTTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT
LLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLReceived on Sun Feb 07 1999 - 03:22:40 CST
![]() |
![]() |