Title: Oracle Tuning Considerations
1Oracle Tuning Considerations
2Agenda
- Why Tune ?
- Ways to Improve Performance
- Hardware
- Software
- Application Design
- Monitoring and Improving Performance
- Top 10 Mistakes of Oracle Systems
3Why Tune ?
- The speed of computing might be wasting valuable
human time (users waiting for response) - Enable your system to keep-up with the speed
business is conducted - Optimize hardware usage to save money (companies
are spending millions on hardware)
4Ways to Improve Performance
- Hardware Component
- Software Component
- Application Design
5Hardware
- CPU
- Memory
- I/O Subsystem
- Network
6Software
- Managing the User Interface
- Implementing Business Logic
- Managing User Requests and Resource Allocation
- Managing Data and Transactions
7Application Design
- Design decisions involved in building
applications - Simplicity in Application Design
- Data Modeling
- Table and Index Design
- Using Views
- SQL Execution Efficiency
- Implementing the Application
- Trends in Application Development
8Deploying New Applications
- Rollout Strategies
- Big Bang Approach
- Trickle Approach
- Performance Checklist
9Performance Checklist
- Allow for growth
- Block Size and Optimizer
- Set minimal number of initialization parameters
- Manage Block Contention
- Optimal SQL Statements and Resource Usage
10Performance Checklist
- Connection Management (Middleware and Programs)
- Efficient Cursors
- Migrated Objects are Consistent
- Establish a Baseline set of Stats from DB and OS
(Statspack or OEM) - Anticipate the First Bottleneck follow the
Oracle Performance Improvement Method
11Monitoring and Improving Performance
- Statistics
- OS
- Database
- Application
- Oracle Performance Improvement Method
12Statistics
- Importance of Statistics
- OS Stats
- CPU
- Virtual Memory
- Disk
- Network
13Statistics
- Database Stats
- Buffer Cache
- Shared Pool
- Wait Events
- Application Stats
14Statistics Gathering Tools
UNIX
CPU sar, vmstat, mpstat, iostat
Memory sar, vmstat
Disk sar, iostat
Network netstat
15Statistics Gathering Tools
- Database
- Statspack
- Oracle Enterprise Manager (EM)
- Bstat/Estat Scripts
16Oracle Performance Improvement Method
- Feedback from Users
- Full Set of Stats (OS, DB, Apps)
- Sanity-Check the OS
- Top 10 Most Common Mistakes
- Conceptual Model on the System using Symptoms
- Remedy Actions of the Anticipated Problem
17Oracle Performance Improvement Method
- Has the change had the desired effect ?
- Repeat last 3 steps
18Top 10 Mistakes of Oracle Systems
- Bad Connection Management
- Bad Use of Cursors and Shared Pool
- Getting Database I/O Wrong
- Redo Log Setup Problems
- Serialization of Data Blocks in the Buffer Cache
- Long Full Table Scans
19Top 10 Mistakes of Oracle Systems
- In Disk Sorting
- High Amounts of Recursive (sys) SQL
- Schema Errors and Optimizer Problems
- Use Of Nonstandard Initialization Parameters