Oracle Database Performance Tuning
Duration: 5 Days
In the Oracle Database: Performance Tuning course, learn about the performance analysis and
tuning tasks expected of a DBA: proactive management through built-in performance analysis
features and tools, diagnosis and tuning of the Oracle Database instance components, and
diagnosis and tuning of SQL-related performance issues. You will learn about Oracle SQL tuning
and how to apply tuning techniques to your SQL code. Learn the different ways in which data can
be accessed efficiently.
Learn To:
Use the Oracle tuning methodology.
Use Oracle-supplied tools for monitoring and diagnosing SQL and instance
performance issues.
Identify and tune problem SQL statements.
Tune instance components.
Manage optimizer statistics on database objects.
Understand the optimizer process steps and operators.
Interpret execution plans.
Perform application tracing.
Audience
Database Administrators
Data Warehouse Administrator
Programmers
Project Manager
Technical Consultant
IT Professionals
Course Topics
Introduction
Course Objectives
Who Tunes?
What Does the DBA Tune?
How to Tune
Tuning Methodology
Exploring the Oracle Database Architecture
List the major architectural components of Oracle Database
Explain memory structures
Describe background processes
Correlate logical and physical storage structures
Describe pluggable databases
Describe ASM storage components
Installing Oracle Database Software
Plan an Oracle Database software installation
Use the Oracle RDBMS Pre-Install RPM
Configure the Oracle software owner environment
Invoke the appropriate Oracle Universal Installer (OUI)
Describe the operating system groups and users
Install the Oracle Database software
Creating an Oracle Database by Using DBCA
Create a database by using the Database Configuration Assistant (DBCA)
Generate database creation scripts by using DBCA
Manage database design templates by using DBCA
Configure database options by using DBCA
Basic Tuning Diagnostics
Performance Tuning Diagnostics
Performance Tuning Tools
Tuning Objectives
Top Timed Events
DB Time
CPU and Wait Time Tuning Dimensions
Time Model
Dynamic Performance Views
Using Automatic Workload Repository
Automatic Workload Repository: Overview
Create AWR snapshots
Manage AWR snapshots
Baselines
Comparative Performance Analysis
Create AWR baselines
Enable adaptive thresholds
Create AWR baselines for future time periods
Automatic Workload Repository Reports
Generate AWR reports
Create Compare Periods reports
Statspack and AWR Reports
Reading an AWR Report
Using Active Session History (ASH)
Active Session History: Overview
ASH Sampling
Accessing ASH Data
Generate ASH reports
ASH Report Structure
Performing Database Maintenance
Proactive and Reactive Database Maintenance
Automated Maintenance Tasks
Automated Maintenance Tasks Configuration
Automatic Database Diagnostic Monitor (ADDM)
ADDM Findings
Advisory Framework
ADDM vs Statspack
Tuning the Shared Pool
Shared Pool Architecture
Shared Pool Operation
The Library Cache
Diagnostic Tools for Tuning the Shared Pool
Avoiding Hard Parses
Reducing the Cost of Soft Parses
Sizing the Shared Pool
Tuning the Buffer Cache
Oracle Database Architecture: Buffer Cache
Buffer Cache: Highlights
Database Buffers
Buffer Hash Table for Lookups
Working Sets
Buffer Cache Tuning Goals and Techniques
Buffer Cache Performance Symptoms
Buffer Cache Performance Solutions
Tuning PGA and Temporary Space
SQL Memory Usage
Performance Impact
Automatic PGA Memory
SQL Memory Manager
Configuring Automatic PGA Memory
Setting PGA_AGGREGATE_TARGET Initially
Limiting the size of the Program Global Area (PGA)
SQL Memory Usage
Automatic Memory
Oracle Database Architecture
Dynamic SGA Granule
Memory Advisories
Manually Adding Granules to Components
Increasing the Size of an SGA Component
Automatic Shared Memory Management: Overview
SGA Sizing Parameters: Overview
Using Database Replay
Identify the benefits of using Database Replay
System Architecture: Capture
Processing the Workload
System Architecture: Replay
List the steps involved in Database Replay
Use Enterprise Manager to record and replay workloads
Introduction to SQL Tuning Advisor
SQL Tuning Session
Recognize: What Is Bad SQL
Understand the Current Issue
Verify: Collect Data
Checking the Basics
SQL Tuning Analysis
Tuning Segment Space Usage
Tune segment space management
Use Segment Space Advisor
Convert to Automatic Segment Space Management
Tune block space management
Diagnose and correct row migration
Diagnose table fragmentation
Use table compression
Parallel execution concepts
Benefits of parallel processing
When to use parallel processing?
Query Coordinator and parallel execution (PX) servers
Parallel execution communication
The producer / consumer model
Execution plan basics
Design Considerations for PL/SQL Code
Standardizing constants with a constant package
Standardizing exceptions with an exception package
Writing PL/SQL code that uses local subprograms
Grant Roles to PL/SQL Packages and Standalone Stored Subprograms
Using the NOCOPY compiler hint to pass parameters by reference
Using the PARALLEL ENABLE hint for optimization