19
Oracle Tuning Oracle Tuning Considerations Considerations

Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Embed Size (px)

Citation preview

Page 1: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Oracle Tuning Oracle Tuning ConsiderationsConsiderations

Page 2: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

AgendaAgenda

Why Tune ?Why Tune ? Ways to Improve PerformanceWays to Improve Performance

HardwareHardware SoftwareSoftware Application DesignApplication Design

Monitoring and Improving Monitoring and Improving PerformancePerformance

Top 10 Mistakes of Oracle Top 10 Mistakes of Oracle SystemsSystems

Page 3: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Why Tune ?Why Tune ?

The speed of computing might The speed of computing might be wasting valuable human time be wasting valuable human time (users waiting for response)(users waiting for response)

Enable your system to keep-up Enable your system to keep-up with the speed business is with the speed business is conductedconducted

Optimize hardware usage to Optimize hardware usage to save money (companies are save money (companies are spending millions on hardware)spending millions on hardware)

Page 4: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Ways to Improve PerformanceWays to Improve Performance

Hardware ComponentHardware Component Software ComponentSoftware Component Application DesignApplication Design

Page 5: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

HardwareHardware

CPUCPU MemoryMemory I/O SubsystemI/O Subsystem NetworkNetwork

Page 6: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

SoftwareSoftware

Managing the User InterfaceManaging the User Interface Implementing Business LogicImplementing Business Logic Managing User Requests and Managing User Requests and

Resource AllocationResource Allocation Managing Data and Managing Data and

TransactionsTransactions

Page 7: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Application DesignApplication Design

Design decisions involved in building Design decisions involved in building applicationsapplications Simplicity in Application DesignSimplicity in Application Design Data ModelingData Modeling Table and Index DesignTable and Index Design Using ViewsUsing Views SQL Execution EfficiencySQL Execution Efficiency Implementing the ApplicationImplementing the Application Trends in Application DevelopmentTrends in Application Development

Page 8: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Deploying New ApplicationsDeploying New Applications

Rollout StrategiesRollout Strategies Big Bang ApproachBig Bang Approach Trickle ApproachTrickle Approach

Performance ChecklistPerformance Checklist

Page 9: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Performance ChecklistPerformance Checklist

1.1. Allow for growthAllow for growth

2.2. Block Size and OptimizerBlock Size and Optimizer

3.3. Set minimal number of Set minimal number of initialization parametersinitialization parameters

4.4. Manage Block ContentionManage Block Contention

5.5. Optimal SQL Statements and Optimal SQL Statements and Resource UsageResource Usage

Page 10: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Performance ChecklistPerformance Checklist

6.6. Connection Management Connection Management (Middleware and Programs)(Middleware and Programs)

7.7. Efficient CursorsEfficient Cursors

8.8. Migrated Objects are ConsistentMigrated Objects are Consistent

9.9. Establish a Baseline set of Stats Establish a Baseline set of Stats from DB and OS (Statspack or from DB and OS (Statspack or OEM)OEM)

10.10. Anticipate the First Bottleneck – Anticipate the First Bottleneck – follow the Oracle Performance follow the Oracle Performance Improvement MethodImprovement Method

Page 11: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Monitoring and Improving Monitoring and Improving PerformancePerformance

StatisticsStatistics OSOS DatabaseDatabase ApplicationApplication

Oracle Performance Oracle Performance Improvement MethodImprovement Method

Page 12: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

StatisticsStatistics

Importance of StatisticsImportance of Statistics

OS StatsOS Stats CPUCPU Virtual MemoryVirtual Memory DiskDisk NetworkNetwork

Page 13: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

StatisticsStatistics

Database StatsDatabase Stats Buffer CacheBuffer Cache Shared PoolShared Pool Wait EventsWait Events

Application StatsApplication Stats

Page 14: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Statistics Gathering ToolsStatistics Gathering Tools

OSOS

UNIXUNIX

CPUCPU sar, vmstat, mpstat, sar, vmstat, mpstat, iostatiostat

MemoryMemory sar, vmstatsar, vmstat

DiskDisk sar, iostatsar, iostat

NetworkNetwork netstatnetstat

Page 15: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Statistics Gathering ToolsStatistics Gathering Tools

DatabaseDatabase StatspackStatspack Oracle Enterprise Manager (EM)Oracle Enterprise Manager (EM) Bstat/Estat ScriptsBstat/Estat Scripts

Page 16: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Oracle Performance Improvement Oracle Performance Improvement MethodMethod

1.1. Feedback from UsersFeedback from Users2.2. Full Set of Stats (OS, DB, Full Set of Stats (OS, DB,

Apps)Apps)3.3. Sanity-Check the OSSanity-Check the OS4.4. Top 10 Most Common Top 10 Most Common

MistakesMistakes5.5. Conceptual Model on the Conceptual Model on the

System using SymptomsSystem using Symptoms6.6. Remedy Actions of the Remedy Actions of the

Anticipated ProblemAnticipated Problem

Page 17: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Oracle Performance Improvement Oracle Performance Improvement MethodMethod

7.7. Has the change had the Has the change had the desired effect ?desired effect ?

8.8. Repeat last 3 stepsRepeat last 3 steps

Page 18: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Top 10 Mistakes of Oracle Top 10 Mistakes of Oracle SystemsSystems

1.1. Bad Connection ManagementBad Connection Management

2.2. Bad Use of Cursors and Bad Use of Cursors and Shared PoolShared Pool

3.3. Getting Database I/O WrongGetting Database I/O Wrong

4.4. Redo Log Setup ProblemsRedo Log Setup Problems

5.5. Serialization of Data Blocks in Serialization of Data Blocks in the Buffer Cachethe Buffer Cache

6.6. Long Full Table ScansLong Full Table Scans

Page 19: Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software

Top 10 Mistakes of Oracle Top 10 Mistakes of Oracle SystemsSystems

7.7. In Disk SortingIn Disk Sorting

8.8. High Amounts of Recursive High Amounts of Recursive (sys) SQL(sys) SQL

9.9. Schema Errors and Optimizer Schema Errors and Optimizer ProblemsProblems

10.10. Use Of Nonstandard Use Of Nonstandard Initialization ParametersInitialization Parameters