对于RBO优化器
在Oracle文档上说:对于RBO来说,以from 子句中从右到左的顺序选择驱动
测试:
|
执行查询:
|
将A表上的索引inx_col12A删除后:
|
通过上面的这些例子,使我对oracle文档上的” All things being equal RBO chooses the driving order by taking the tables in the FROM clause RIGHT to LEFT”这句话持怀疑态度。此时,我也不能使用hints来强制优化器使用nested loop,如果使用了hints,这样就自动使用CBO优化器,而不是RBO优化器了。