ORACLE HINT
2015-03-20 14:06
176 查看
Hints
Hints are comments in a SQL statement that pass instructions to the Oracle Database optimizer. The optimizer uses these hints to choose an execution plan for the statement, unless some condition exists that prevents the optimizer from doing so.Hints were introduced in Oracle7, when users had little recourse if the optimizer generated suboptimal plans. Now Oracle provides a number of tools, including the SQL Tuning Advisor, SQL plan management, and SQL Performance Analyzer, to help you address performance problems that are not solved by the optimizer. Oracle strongly recommends that you use those tools rather than hints. The tools are far superior to hints, because when used on an ongoing basis, they provide fresh solutions as your data and database environment change.
Hints should be used sparingly, and only after you have collected statistics on the relevant tables and evaluated the optimizer plan without hints using the EXPLAIN PLAN statement. Changing database conditions as well as query performance enhancements in subsequent releases can have significant impact on how hints in your code affect performance.
The remainder of this section provides information on some commonly used hints. If you decide to use hints rather than the more advanced tuning tools, be aware that any short-term benefit resulting from the use of hints may not continue to result in improved performance over the long term.
Oracle 官方文档对Hint的说明
http://www.cnblogs.com/ebs-blog/archive/2011/09/05/2167730.html
相关文章推荐
- oracle hint 实践一列 leanding 驱动表和hash多块读取
- Oracle append Hint(四)
- ORACLE进阶之一:HINT
- Oracle Hint
- Oracle hint之ORDERED和USE_NL
- Oracle hint 说明
- 常见Oracle HINT的用法
- oracle hint中ordered 和leading原理很好的帖子
- oracle hint用法大全
- Oracle中Hint被忽略的几种常见情形
- oracle /*+ SYS_DL_CURSOR */ 这个hint
- Oracle中Hint深入理解
- 常见Oracle HINT的用法
- Oracle Hint的用法
- Oracle Hint的用法
- Oracle 学习之性能优化(九)使用hint
- oracle 所有 hint
- Oracle中基于hint的3种执行计划控制方法详细介绍
- Oracle Hint