Optimizer_mode : RULE | FRIST_ROWS | ALL_ROWS | CHOOSE
COST : run by FTS Which don't need , Iespeacial under 3 tables jion
RULE : choose error index
FULL TABLE SCAN 临界条件:
1. sorted table -- > 40% rows need be seleced using FTS
2. unsorted table -- >7%rows need be selected using FTS
About driver table under RULE : 返回行最小的表should be put the frist position in where clause ,but COST auto choose driver table .
COST : need all tables and indexes be analyzed . dbms_utility.analyze_schema('schema_name','','','FOR TABLE FOR ALL INDEXES')
CBO SQL TIPS
/*+ rule*/
/*+ full, table =xxx parallel = nn */
/*+ table =xxx index=xxx */
/*+ frist_rows */
/*+ use_hash */
CUSOR_SHARING =FORCE
OUTLINE : hard sql execute plan
TOOLS : XPLAN , TIMING ON
oracleHu 2005-10-28
博客介绍了Oracle SQL的优化模式,如Optimizer_mode的不同取值,包括RULE、COST等模式的特点。还提及FULL TABLE SCAN的临界条件,以及不同模式下驱动表的选择。此外,给出了CBO SQL的一些提示,如使用特定注释,还介绍了相关工具,如XPLAN、TIMING ON。
840

被折叠的 条评论
为什么被折叠?



