Upload
carlos-oliveira
View
170
Download
3
Tags:
Embed Size (px)
Citation preview
Oracle Database Performance Project
Carlos Oliveira / May 31, 2012
Agenda
Oracle Text OverviewIntroductionProblemPropositionReasoningTuning AreaSolutionApplication TuningTraining & ReferenceQuestions
IntroductionI am a forward-looking Information Systems Architect with a solid Oracle DBA background comprising the daily infrastructure tasks of the DBA, several projects as a Data Modeler, and performance management projects.
I Started on the mainframe business, and soon had a deep dive in application development for Oracle databases. After acquiring an Oracle certification, I worked on performance enhancement for applications using Oracle databases, and later worked several years as an infrastructure DBA, later I worked on data modeling projects and more recently a performance management project, on both application and database layers.
“Knowledge is of two kinds. We know a subject ourselves, or we know where we can findinformation upon it.
Samuel Johnson
• Business Disruption• Call Centers Losing Sales• Loss of Customer Trust & Satisfaction
Problem
• Applications• Not designed for best performance• Frequent changes
• Servers• Upgrades limited by hardware• New server - not a long term solution
Proposition• Applications
• Do not act within application with only application knowledge
• Servers and Database• Do not act within database with only database knowledge
Do act within Application with Servers and Database knowledge
Reasoning• Where should the tuning effort be directed? • Database Design:
Poor system performance usually results from a poor database design.
• Application Tuning: Experience shows that approximately 80% of all Oracle system performance
problems are resolved by coding optimal SQL.
• Memory Tuning: Properly size your database buffers by looking at your wait events, buffer hit ratios,
system swapping and paging, etc.
• Disk I/O Tuning: Database files needs to be properly sized and placed to provide maximum disk
subsystem throughput.
• Eliminate Database Contention: Study database locks, latches and wait events carefully and eliminate where
possible.
• Tune the Operating System: Monitor and tune operating system CPU, I/O and memory utilization.
(Source: http://www.orafaq.com/wiki/Oracle_database_Performance_Tuning_FAQ)
Tuning Area Chosen
Desig
n
Applic
atio
n
Mem
ory
I/O
Conte
ntio
nOS
0%10%20%30%40%50%60%70%80%90%
Impact
Impact
It’s clear we should prioritize Application Tuning due to its impact in performance
* Most cost-effective approach on solving performance problems.
ToolsSoftware
CommercialIn-house
TrainingSharepoint
LibraryBest practicesGuidelinesUseful scripts
SolutionMonitoring
Real-time monitoringAd hoc monitoring
ConsultingWalkthroughReviewFinal acceptanceCommunication
Application TuningStarts with good knowledge of SQL and PL/SQLOracle Database features (special indexes, materialized views, execution plan, …)Metalink:
Oracle Performance Diagnostic Guide (OPDG) [ID 390374.1]
Tools:ADDM (Automated Database Diagnostics Monitor) Oracle 10g TKProf Trace and Trace AnalyzerStatspack Oracle Enterprise Manager - Tuning Pack (cost option) Old UTLBSTAT.SQL and UTLESTAT.SQL - Begin and end stats monitoring
TrainingResources at Oracle website
•Performance Tuning Guide and Referencehttp://docs.oracle.com/cd/B10500_01/server.920/a96533/toc.htm
•SQL Referencehttp://docs.oracle.com/cd/B10500_01/server.920/a96540/toc.htm
•PL/SQL User's Guide and Referencehttp://docs.oracle.com/cd/B10500_01/appdev.920/a96624/toc.htmLook at my publications in LinkedIn for specific tuning approaches.
Thank you
http://linkedin.com/in/carlosoliveira
Carlos Oliveira / May 31, 2012