下载此文档

oracle 11g新特性 之SQL Tuning.ppt


文档分类:IT计算机 | 页数:约22页 举报非法文档有奖
1/22
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/22 下载此文档
文档列表 文档介绍
oracle 11g新特性 之SQL_TuningAutomatic SQL Tuning
Objectives
pleting this lesson, you should be able to:
Set up and modify Automatic SQL Tuning
Use the PL/SQL interface to perform fine tuning
View and interpret reports generated by Automatic SQL Tuning
SQL Tuning in Oracle Database 10g
SQL Tuning Advisor
High load
ADDM
Workload
DBA
1
2
3
4
Run SQL Tuning Advisor
Accept profiles
Generate SQL profiles
Automatic
Automatic SQL Tuning in Oracle Database 11g
AWR
Auto matic
SQL Tuning
Workload
Reports
1
2
3
4
DBA
Top SQL
Summary of Automation in Oracle Database 11g
Task runs automatically (AUTOTASK framework)
Workload automatically chosen (no SQL Tuning Set)
SQL profiles automatically tested
SQL profiles can be configured for automatic implementation
SQL statements automatically retuned if they regress
Reporting available over any time period
Selecting Potential SQL Statements for Tuning
AWR
Avrg execution
Hourly
Pull the top queries from the past week into four buckets:
Top for the past week
Top for any day in the past week
Top in any single hour
Top by average single bine four buckets into one (assigning weights).
Cap at 150 queries per bucket.
Candidate list
Daily
Weekly
Maintenance Window Timeline
Maintenance window
Pick candidate SQL
Tune S1
Test P1
Accept P1
Tune S2


Automatic SQL Tuning task
One hour maximum (by default)
Automatic Tuning Process
Existing profile?
Replace profile
Y
N
3X benefit?
3X benefit?
Y
Accept profile
Y
Ignore new profile
N
N
New SQL profile
GATHER_STATS_JOB
Indexes
Not considered for auto implementation
Stale stats
Restructure SQL
Considered for auto implementation
Controlling the Automatic SQL Tuning Task
Autotask configuration:
On/off switch
Maintenance windows running tuning task
CPU resource consumption of tuning task
Task parameters:
SQL profile implementation automatic/manual switch
Global time limit for tuning task
Per-SQL time limit for tuning task
Test-execute mode disabled to save time
M

oracle 11g新特性 之SQL Tuning 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数22
  • 收藏数0 收藏
  • 顶次数0
  • 上传人坐水行舟
  • 文件大小334 KB
  • 时间2018-12-05