linux
===========================================================
oracle hints ? use_hash ? ordered ?
===========================================================

关键字: oracle hints use_hash ordered

今天优化一个sql语句,想使用hash join看看效果,无论如何使用提示,都无法改变执行计划。google,首先发现要可以使用LEADING,但是在8i下无效:
发现LEADING的意思是:
LEADING hint causes Oracle to use the specified table as the first table in the join order.An ORDERED hint will override this hint.

改用ordered后,在检查执行计划发现可以使用hash join。

ordered:Causes the SQL to be driven by the tables in the order left to right.

我将use_hash括号里面的表对调,并不能改变执行计划。

我很少使用hints,为什么会出现这个问题,自己不知道?


lfree 发表于:2007.04.28 15:46 ::分类: ( oracle ) ::阅读:(346次) :: 评论 (0)

发表评论
标题

在此添加评论
表情符号: smile laughing tongue angry crying sad wassat wink

称呼

邮箱地址(可选)

个人主页(可选)

 authimage


自我介绍
切换风格
新闻聚合
博客日历
文章归档...
最新发表...
最多阅读文章...
最多评论文章...
博客统计...
Blog信息
网站链接...