[bbk2228] 第41集 - Chapter 11-SQL Statement Tuning(00)
2013-05-04 11:37
337 查看
Objectives
After completing this lesson,you should be able to do the following:Control optimizer options
Use optimizer hints
Employe plan stability
Use store outlines(在10g,11g已经过时)
Use SQL Trace and TKPROF
Overview
The purpose of this lesson is:To provide mthods to determine the resources used by SQL statements:
-Oracle Enterprise Manager
-Statuspack
-Explain plan
-SQL Trace and TKPROF
-Autotrace
To determine which SQL statements possibly require tuning
Not to tune the actual SQL statements
Optimizer Modes
There are two types of optimizer modes:Rule-based:(Rule based Optimizer 俗称RBO)
Uses a ranking system
Syntax-and data dictionary-driven(基于语法逻辑和一些数据字典信息进行驱动的优化)
Cost-based:(Cost based Optimizer 俗称CBO)
Chooses the path with lowest cost
Statistics-driven(基于分析统计报表数据,进行优化驱动)
备注:目前RBO已经退出历史舞台,不在实际应用中使用;
相关文章推荐
- [bbk2301] 第44集 - Chapter 11-SQL Statement Tuning(03)
- [bbk2300] 第43集 - Chapter 11-SQL Statement Tuning(02)
- [bbk2229] 第42集 - Chapter 11-SQL Statement Tuning(01)
- tuning 11--SQL Statement Tuning
- [bbk2228] 第41集 - Chapter 10-Using Resource Manager(04)
- 053-5 You run the SQL Tuning Advisor (STA) to tune a SQL statement that is part of a fixed SQL plan
- CHAPTER 1 SQL Query Performance Tuning
- [bbk4979]第06集 - Chapter 04- Interacting with Oracle Database Server:SQL Statements in PL/SQL Programs(01)
- [bbk2196] 第37集 - Chapter 10-Using Resource Manager(00)
- [bbk3204] 第67集 -Chapter 17-Monitoring and Detecting Lock Contention(00)
- Tuning SQL via case when statement
- [bbk2515] 第51集 - Chapter 13-Using Oracle Blokcs Efficeintly[00]
- How I Approach Tuning a SQL Statement --oracle community
- 053-3 While tuning a SQLstatement, the SQL Tuning Advisor finds an existing SQL profile for
- Oracle sql statement tuning
- [bbk3019] 第60集 - Chapter 15-Application Tuning(00)
- [bbk2340] 第45集 - Chapter 09-Optimizing Sore Perations(00)
- [bbk2190] 第31集 - Chapter 09-Optimizing Sore Perations(00)
- Answer to Chapter 11 of O'Reilly Learning Sql on SQL Server 2005 .
- SQL Statement Tuning