Tuning SQL note1
2005-12-28 09:20
162 查看
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
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
相关文章推荐
- Master Note: How to Identify Resource Intensive SQL for Tuning [ID 232443.1]
- 30 分钟快快乐乐学 SQL Performance Tuning
- Microsoft SQL Server 2000 Performance Optimization and Tuning Handbook
- Oracle SQL tuning 数据库优化步骤分享(图文教程)
- 关于C#执行多个SQL语句的一些操作——Note on Dec. 19th
- Using the DBMS_SQLTUNE package to Run the Sql Tuning Advisor
- 如何用 SQL Tuning Advisor (STA) 优化SQL语句
- 30 分钟快快乐乐学 SQL Performance Tuning
- VIEW: "V$SQLAREA" Reference Note (文档 ID 43761.1)
- 如何用 SQL Tuning Advisor (STA) 优化SQL语句
- SQL Server Note
- SQL Tuning Advisor(STA) 到底做了什么?
- 如何用 SQL Tuning Advisor (STA) 优化SQL语句
- SQL Performance Tuning using Indexes
- 如何用 SQL Tuning Advisor (STA) 优化SQL语句
- sql note
- sql监控与调优(sql monitoring and tuning)
- 11g新特性-自动sql调优(Automatic SQL Tuning)
- 30 分钟快快乐乐学 SQL Performance Tuning
- Note 23888 - SD performance and tuning: A basis for notes(sap条件类型性能优化NOTE)