You are on page 1of 13

Copyright 2008, Oracle. All rights reserved.

Introduction
Copyright 2008, Oracle. All rights reserved. 1 - 2
Course Objectives
After completing this course, you should be able to do the
following:
Utilize database advisors to proactively tune an Oracle
Database
Use the tools based on Automatic Workload Repository
(AWR) to tune an Oracle Database
Diagnose and tune common SQL-related performance
problems
Diagnose and tune common instance-related performance
problems
Use the Enterprise Manager performance-related pages to
monitor an Oracle Database
Copyright 2008, Oracle. All rights reserved. 1 - 3
Organization
Monitoring and Diagnostics
Monitoring using available tools
Identifying the problem
Using AWR-based tools
SQL Tuning
Identifying and tuning SQL statements by influencing the
optimizer
Managing change
SQL Performance Management
Real Application Testing
Instance Tuning
Tuning memory components
Tuning space usage and I/O
Copyright 2008, Oracle. All rights reserved. 1 - 4
Agenda
Day Lesson Topic
1 1 Introduction
1 2 Basic Tuning Tools
2 3 Using Automatic Workload Repository
2 4 Defining Problems
3 5 Using Metrics and Alerts
3 6 Baselines
4 7 Using AWR-Based Tools
4 8 Monitoring an Application
5 9 Identifying Problem SQL Statements
5 10 Influencing the Optimizer
Copyright 2008, Oracle. All rights reserved. 1 - 5
Agenda
Day Lesson Topic
6 11 Using SQL Performance Analyzer
6 12 SQL Performance Management
7 13 Using Database Replay
7 14 Tuning the Shared Pool
8 15 Tuning the Buffer Cache
8 16 Tuning PGA and Temporary Space
9 17 Automatic Memory Management
9 18 Tuning Segment Space Usage
10 19 Tuning I/O
10 20 Performance Tuning Summary
(opt) Appd B Using Statspack (optional)
Copyright 2008, Oracle. All rights reserved. 1 - 6
What Is Not Included
7x24 availability
Online operations
Backup performance
Parallel operations
Streams and Data Guard performance issues
Real Application Clusters
Operating systemspecific issues
Copyright 2008, Oracle. All rights reserved. 1 - 7
Who Tunes?
The people who are involved with tuning:
Database administrators
Application architects
Application designers
Application developers
System administrators
Storage administrators
Copyright 2008, Oracle. All rights reserved. 1 - 8
What Does the DBA Tune?
Performance tuning areas:
Application:
SQL statement performance
Change management
Instance tuning:
Memory
Database structure
Instance configuration
Operating system interactions:
I/O
Swap
Parameters
Shared with developers
Shared with SA
Copyright 2008, Oracle. All rights reserved. 1 - 10
How to Tune
The procedures used to tune depend on the tool.
Basic tools:
Dynamic performance views
Statistics
Metrics
Enterprise Manager pages
AWR or Statspack
Automatic Database Diagnostic Monitor (ADDM)
DBA scripts
Copyright 2008, Oracle. All rights reserved. 1 - 11
Tuning Methodology
Tuning steps:
Tune the following from the top down:
The design before tuning the application code
The code before tuning the instance
Tune the area with the greatest potential benefitidentify:
The longest waits
The largest service times
Stop tuning when the goal is met.
Copyright 2008, Oracle. All rights reserved. 1 - 13
Effective Tuning Goals
Effective tuning goals are:
Specific
Measurable
Achievable
Copyright 2008, Oracle. All rights reserved. 1 - 15
General Tuning Session
Tuning sessions have the same procedure:
1. Define the problem and state the goal.
2. Collect current performance statistics.
3. Consider some common performance errors.
4. Build a trial solution.
5. Implement and measure the change.
6. Decide: Did the solution meet the goal?
No? Then go to step 3 and repeat.
Yes? Then create a new baseline.
Copyright 2008, Oracle. All rights reserved. 1 - 17
Summary
In this lesson, you should have learned how to:
Identify tuning tools
Utilize a tuning methodology

You might also like