Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Why would an index not be used if specified as a hint in a query?
On Sat, 12 Feb 2005, niall.litchfield_at_dial.pipex.com wrote:
> "DA Morgan" <damorgan_at_x.washington.edu> wrote in message > news:1108185875.191030_at_yasure...
> > A reasonable presumption indeed, but an incorrect one - assuming I > understand 'not required' correctly - equally only one of your factors > should be relevant. > > Using an INDEX hint *WILL* cause the index to be used *IF IT CAN BE*
I thought hints lowered the cost of a particular access path. Therefore the CBO was more apt to pick it. But, that a hint was nothing more than that. I didn't think there was anyway to "expect" that a hint was going to be obeyed.
And God knows, I really think there ought to be a setting where are able to tell Oracle to take whatever path we set, no ifs/ands or buts, of course without the RBO. More of the OBO. Obey Based Optimizer. :-)
-- Galen deForest BoyerReceived on Sun Feb 13 2005 - 16:44:15 CST