Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle ignoring function-based index - why?
Its the lack of stats that is causing your problem (so long as you have
both the privs given above (query_rewrite ... ):-
http://asktom.oracle.com/~tkyte/article1/
Function based indexes are only used by the cost based optimiser, not the rule one. When optimizer_mode is set to choose, rule mode is used unless AT LEAST one table in the query has stats. If the query is a join, and one of the tables have stats, the cost based optimiser will still be used (default stats will be given to the other tables). If none of the tables have stats, rule based optimisation will be used. Received on Fri Jul 22 2005 - 08:27:20 CDT
![]() |
![]() |