您的位置:首页 > 数据库 > Oracle

关于Oracle SQL Tuning的一个培训大纲

2007-04-06 22:17 239 查看
课程:Oracle Database 10g: SQL Tuning Workshop

此课程被设计用来提供给SQL开发者或DBA一个坚实的SQL调优技巧基础。参加者将会学习在Oracle 10g中有效地调优SQL的必要知识。他们将学习调优方法论和调优方法。学员将会被介绍一些在Oracle 10g中新的自动调优机制。课程结束时,他们将可以比较手动调优和新版本中自动调优功能的步骤。学员将获得对Oracle优化器完整的理解,通过结构化练习增强在指导下学习的能力。此课程应用一系列有挑战性的学习机会,使学员“玩,发现,学习”SQL调优组件,EXPLAIN,SQL Trace以及TKPROF, SQL*Plus AUTOTRACE。学员也会学习通过修改物理schema,修改SQL statement语法来改变优化器行为。

课程目标:
描述处理SQL语句的基本步骤
描述性能问题的原因
理解在哪个位置进行SQL调优适合于整体调优方法论
描述自动调优
应用诊断工具手机SQL语句处理信息
理解优化器行为
改变优化器行为
改变物理数据模型以避免性能问题

课程主题:
数据库架构概览
数据库架构概览
列出SQL语句处理步骤
识别“最低化”解析的方法(手段)
声明绑定变量的用法

接下来调优方法论
描述性能问题的根源
识别性能问题
采用调优方法

为性能设计应用程序
Oracle 方法论
理解可伸缩性
系统架构
应用设计原则
部署新的应用程序

优化器介绍
描述Oracle优化器功能
Identify the factors that the optimizer considers when it selects an execution plan
Set the optimizer approach at the instance and session level
Use dynamic sampling

优化器操作
执行计划
Joins 类型

Displaying Execution plans
Using the EXPLAIN PLAN Command
Interpreting EXPLAIN Output
Interpreting AUTOTRACE Statistics

收集统计信息
应用DBMS_STATS 包
Identifying Table, Column, and Index Statistics
构建柱状图

应用Tracing
Statspack
End to End tracing
Invoking the SQL Trace Facility
Setting Up Appropriate Initialization Parameters
Formatting Trace Files with TKPROF
Interpreting the Output of the TKPROF Command

Identifying High Load SQL
Use different methods to identify high-load SQL
ADDM
Top SQL
Dynamic Performance views
Statspack

自动SQL调优
查询优化器模式
调优分析类型
SQL 调优 Advisor
SQL Tuning Sets
Top SQL

介绍索引
识别行访问方法
创建B-Tree Indexes
理解B-Tree Index 访问和索引合并

高级索引
采用位图索引
采用Function-Based Key Indexes

优化器Hints和Plan Stability
应用 Hints
讨论并从Optimizer Plan Stability 获益

物化视图和临时表
应用CREATE MATERIALIZED VIEW 语法
利用Query Rewrites

Course:Oracle Database 10g: SQL Tuning Workshop

This course is designed to give the experienced SQL Developer or DBA a firm foundation in SQL tuning techniques. The participant learns the necessary knowledge and skills to effectively tune SQL in the Oracle Database 10g. They learn about tuning methodology as well proactive tuning and reactive tuning methods. Students are introduced to the benefits of the new automatic tuning mechanisms available in Oracle Database 10g. On completion of the course they are able to compare and contrast the steps involved to tune manually as in prior releases as well as use the automatic SQL tuning features provided in the current release. Students gain a thorough conceptual understanding of the Oracle Optimizer, and reinforce instructor-led learning with structured hands-on practices. The course uses a series of challenge-level workshops, allowing students to "play, discover, and learn" at their own level and pace. The students learn to use the Oracle diagnostic tools and facilities: Automatic SQL Tuning components, EXPLAIN, SQL Trace and TKPROF, SQL*Plus AUTOTRACE. Students also learn to influence the behavior of the Optimizer by changing the physical schema and modifying SQL statement syntax.
This course counts towards the Hands-on course requirement for the Oracle Database 10g Administrator Certification. Only instructor-led inclass or instructor-led online formats of this course will meet the Certification Hands-on Requirement. Self Study CD-Rom and Knowledge Center courses DO NOT meet the Hands-on Requirement.

课程目标:
Describe the basic steps in processing SQL statements
Describe the causes of performance problems
Understand where SQL tuning fits in an overall tuning methodology
Describe Automatic SQL Tuning
Use the diagnostic tools to gather information about SQL statement processing
Understand Optimizer behavior
Influence the optimizer behavior
Influence the physical data model so as to avoid performance problems

课程主题:
Database Architecture overview
Overview of Database architecture
Listing the SQL Statement Processing Steps
Identifying Means to Minimize Parsing
Stating the Use of Bind Variables

Following a Tuning Methodology
Describing the Causes of Performance Problems
Identifying Performance Problems
Using a Tuning Methodology

Designing Applications for performance
Oracle Methodology
Understanding Scalability
System Architecture
Application Design Principles
Deploying New Applications

Introducing the optimizer
Describe the functions of the Oracle optimizer
Identify the factors that the optimizer considers when it selects an execution plan
Set the optimizer approach at the instance and session level
Use dynamic sampling

Optimizer Operations
Execution plans
Types of Joins

Displaying Execution plans
Using the EXPLAIN PLAN Command
Interpreting EXPLAIN Output
Interpreting AUTOTRACE Statistics

Gathering Statistics
Using the DBMS_STATS Package
Identifying Table, Column, and Index Statistics
Building Histograms

Application Tracing
Statspack
End to End tracing
Invoking the SQL Trace Facility
Setting Up Appropriate Initialization Parameters
Formatting Trace Files with TKPROF
Interpreting the Output of the TKPROF Command

Identifying High Load SQL
Use different methods to identify high-load SQL
ADDM
Top SQL
Dynamic Performance views
Statspack

Automatic SQL Tuning
Query Optimizer Modes
Types of Tuning Analysis
SQL Tuning Advisor
SQL Tuning Sets
Top SQL

Introduction to Indexes
Identifying Row Access Methods
Creating B-Tree Indexes
Understanding B-Tree Index Access and Index Merging

Advanced Indexes
Using Bitmapped Indexes
Using Function-Based Key Indexes

Optimizer Hints and Plan Stability
Using Hints
Purpose and Benefits of Optimizer Plan Stability

Materialized Views and Temporary Tables
Using the CREATE MATERIALIZED VIEW Syntax
Utilizing Query Rewrites
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: