Upload
merryl-austin
View
215
Download
2
Embed Size (px)
Citation preview
Oracle Tuning Oracle Tuning ConsiderationsConsiderations
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
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)
Ways to Improve PerformanceWays to Improve Performance
Hardware ComponentHardware Component Software ComponentSoftware Component Application DesignApplication Design
HardwareHardware
CPUCPU MemoryMemory I/O SubsystemI/O Subsystem NetworkNetwork
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
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
Deploying New ApplicationsDeploying New Applications
Rollout StrategiesRollout Strategies Big Bang ApproachBig Bang Approach Trickle ApproachTrickle Approach
Performance ChecklistPerformance Checklist
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
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
Monitoring and Improving Monitoring and Improving PerformancePerformance
StatisticsStatistics OSOS DatabaseDatabase ApplicationApplication
Oracle Performance Oracle Performance Improvement MethodImprovement Method
StatisticsStatistics
Importance of StatisticsImportance of Statistics
OS StatsOS Stats CPUCPU Virtual MemoryVirtual Memory DiskDisk NetworkNetwork
StatisticsStatistics
Database StatsDatabase Stats Buffer CacheBuffer Cache Shared PoolShared Pool Wait EventsWait Events
Application StatsApplication Stats
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
Statistics Gathering ToolsStatistics Gathering Tools
DatabaseDatabase StatspackStatspack Oracle Enterprise Manager (EM)Oracle Enterprise Manager (EM) Bstat/Estat ScriptsBstat/Estat Scripts
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
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
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
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