SlideShare una empresa de Scribd logo
1 de 63
John Kanagaraj DB Soft Inc Session # S291013  Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Speaker Qualifications ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
SELECT: Call for Articles/Reviewers ,[object Object],[object Object],[object Object]
What this presentation is about ,[object Object],[object Object],[object Object],[object Object],[object Object]
Philosophy behind Oracle DB 10g ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Previous status ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Now in Oracle DB 10g…. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
“OWI” - The “Wait” interface ,[object Object],[object Object],[object Object],[object Object],[object Object]
The basics – Session State ,[object Object],[object Object],[object Object],[object Object],[object Object]
An earlier realization  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Time Model in 10g  ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Wait Classes in 10g ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Front page news – DB Console
Automatic Workload Repository ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Automatic Workload Repository ,[object Object],[object Object],[object Object],[object Object],[object Object]
AWR – “Statspack on Steroids” ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
AWR – Storage in SYSAUX ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
AWR Baselines ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
API - DBMS_WORKLOAD_REPOSITORY   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASH – What’s up with sessions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASH – Session states exposed! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASH – What is happening to me?! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASH Report - New in 10gR2  ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASH - Others ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ADDM – Your unpaid Tuning Expert! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
ADDM checks for: (partial list) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ADDM – Findings/Recommendations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ADDM – Accessing “ADDuM” ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ADDM – Don’t stare at the screen! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ADDM – Don’t stare at the screen! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
 
 
Advisors – More freebies! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Advisor Framework ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
SQL Tuning Advisor – What? ,[object Object],[object Object],[object Object],[object Object],[object Object]
SQL Tuning Advisor – How? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
 
SQL Profiles ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
SQL Tuning Set ,[object Object],[object Object],[object Object],[object Object],[object Object]
SQL Access Advisor – 9i SumAdv++ ,[object Object],[object Object],[object Object],[object Object],[object Object]
Segment Advisor
Undo Advisor
Undo Advisor
Memory Advisor
Memory Advisor
Avoiding Advisor Pitfalls ,[object Object],[object Object],[object Object]
Metrics and SGA ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Metric Views ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Server Generated Alerts ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Tidbits - Tracing the Advisors ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Tidbits – Advisor Messages ,[object Object],[object Object],[object Object]
Tidbits – Statistics Aggregation ,[object Object],[object Object],[object Object],[object Object],[object Object]
Where do you go from here? ,[object Object],[object Object],[object Object],[object Object]
Items learnt in this session ,[object Object],[object Object],[object Object],[object Object],[object Object]
Q & A – Feedback ,[object Object],[object Object],[object Object],[object Object],[object Object]

Más contenido relacionado

La actualidad más candente

Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
Carlos Sierra
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
Yogiji Creations
 

La actualidad más candente (20)

Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Ash and awr deep dive hotsos
Ash and awr deep dive hotsosAsh and awr deep dive hotsos
Ash and awr deep dive hotsos
 
Same plan different performance
Same plan different performanceSame plan different performance
Same plan different performance
 
Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12c
 
Oracle AWR Data mining
Oracle AWR Data miningOracle AWR Data mining
Oracle AWR Data mining
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
 
AWR and ASH Deep Dive
AWR and ASH Deep DiveAWR and ASH Deep Dive
AWR and ASH Deep Dive
 
Chasing the optimizer
Chasing the optimizerChasing the optimizer
Chasing the optimizer
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
 
Understanding SQL Trace, TKPROF and Execution Plan for beginners
Understanding SQL Trace, TKPROF and Execution Plan for beginnersUnderstanding SQL Trace, TKPROF and Execution Plan for beginners
Understanding SQL Trace, TKPROF and Execution Plan for beginners
 
TFA Collector - what can one do with it
TFA Collector - what can one do with it TFA Collector - what can one do with it
TFA Collector - what can one do with it
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
 
ASH and AWR on DB12c
ASH and AWR on DB12cASH and AWR on DB12c
ASH and AWR on DB12c
 

Similar a Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors

AWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.pptAWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.ppt
bugzbinny
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
afa reg
 
Wait Events 10g
Wait Events 10gWait Events 10g
Wait Events 10g
sagai
 
Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmasters
Kyle Hailey
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
Karam Abuataya
 
UKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction LocksUKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction Locks
Kyle Hailey
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
Sidney Chen
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 sampling
Kyle Hailey
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
Jason Arneil
 

Similar a Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors (20)

AWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.pptAWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.ppt
 
Rmoug ashmaster
Rmoug ashmasterRmoug ashmaster
Rmoug ashmaster
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
 
Wait Events 10g
Wait Events 10gWait Events 10g
Wait Events 10g
 
Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmasters
 
Using AWR for IO Subsystem Analysis
Using AWR for IO Subsystem AnalysisUsing AWR for IO Subsystem Analysis
Using AWR for IO Subsystem Analysis
 
Using AWR for SQL Analysis
Using AWR for SQL AnalysisUsing AWR for SQL Analysis
Using AWR for SQL Analysis
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
active_session_history_oracle_performance.ppt
active_session_history_oracle_performance.pptactive_session_history_oracle_performance.ppt
active_session_history_oracle_performance.ppt
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
 
UKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction LocksUKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction Locks
 
Using Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and TuningUsing Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and Tuning
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
Introduction to Parallel Execution
Introduction to Parallel ExecutionIntroduction to Parallel Execution
Introduction to Parallel Execution
 
Sherlock holmes for dba’s
Sherlock holmes for dba’sSherlock holmes for dba’s
Sherlock holmes for dba’s
 
Awr doag
Awr doagAwr doag
Awr doag
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 sampling
 
Less04 Instance
Less04 InstanceLess04 Instance
Less04 Instance
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors

Notas del editor

  1. Many architectural changes have been made to automatically improve memory handling, resource management, storage provisioning, SQL tuning, data movement, recovery speed, and globalization
  2. Available in V_$SESSION, V_$SESSION_WAIT_CLASS, V_$SESSION_WAIT, V_$SESSION_EVENT, V_$SYSTEM_WAIT_CLASS, V_$SYSTEM_EVENT, V_$EVENT_NAME, V_$SERVICE_WAIT_CLASS, V_$ACTIVE_SESSION_HISTORY, WRH$_EVENT_NAME, WRH$_SERVICE_WAIT_CLASS, WRH$_SERVICE_WAIT_CLASS_BL, DBA_HIST_EVENT_NAME, DBA_HIST_SYSTEM_EVENT, DBA_HIST_BG_EVENT_SUMMARY, etc.
  3. Event breakout: 29 different types of latching and the ‘enqueue’ event breaks out into an amazing 208 types!
  4. WRM$_WR_CONTROL – management, WRH$_ACTIVE_SESSION_HISTORY – History, WRI$_ADV_REC_ACTIONS – Interpretation and results
  5. Knowing and reporting off STATSPACK data – extend to 10g
  6. Persisted in the WRH$_ACTIVE_SESSION_HISTORY
  7. Note the Total Time (30 minutes) – Remember there were only 3 SQL statements selected for tuning, and all of them appear here
  8. Other 9i – MTTR, PGA Aggr Target
  9. Other 9i – MTTR, PGA Aggr Target
  10. Sub-optimal execution plans are generated even if everything is collected (object/system stats, histograms, configuration) – because this a mathematical model (e.g. information about correlated columns). The query optimizer under normal mode makes estimates about cardinality, selectivity, and cost that can sometimes be off by a significant amount resulting in poor execution plans
  11. The default active category is set through the INIT.ORA parameter SQLTUNE_CATEGORY, but can be changed with ALTER SYSTEM or ALTER SESSION. If the SQL statement contains literals, the hash value changes as well, and hence the SQL profile may be useless. 10gR2 allows substitution of literals with bind variables during the normalization phase as long no other bind variables are present in the SQL statement
  12. An STS includes: A set of SQL statements; Associated execution context, such as user schema, application module name and action, list of bind values, and the cursor compilation environment; Associated basic execution statistics, such as elapsed time, CPU time, buffer gets, disk reads, rows processed, cursor fetches, the number of executions, the number of complete executions, optimizer cost, and the command type; Associated execution plans and row source statistics for each SQL statement (optional)
  13. User-defined workload. In this source, you use the Torch icon to choose a table in a schema that contains at least the SQL_TEXT and a USERNAME column. You can use this option to run the advisor on a pre-populated set of SQL statements. Hypothetical load. This is the most intriguing of the choices. Basically, it enables a performance analyst to choose a schema or a set of tables that contain dimensions or primary and foreign key constraints. SQL Access Advisor can then generate recommendations for indexes and materialized views based on these relationships.
  14. Segment Advisor where you can get advice on segments including recommendations to shrink the object. Quick tip: Metalink Note: 242736.1 10g NEW FEATURES on SEGMENT ADVISOR
  15. Undo Advisor which can be used to display Undo usage over a selected period and set Undo parameters using a GUI screen. The Undo Advisor can help you determine the best size for your undo tablespace to ensure successful completion of queries.
  16. Use the Memory Advisor to perform what-if analysis on the database performance benefits of adding or reducing physical memory to your database.
  17. Metric groups indicate: Event Metrics, Event Class Metrics, System Metrics Long Duration, System Metrics Short Duration, Session Metrics Long Duration, Session Metrics Short Duration, Service Metrics, File Metrics Long Duration, Tablespace Metrics Long Duration, Service Metrics (Short)
  18. Metalink Note:332889.1 Oracle Database 10g Migration/Upgrade: Known Issues and Best Practices with Self-Managing Database Metalink Note:276103.1 PERFORMANCE TUNING USING 10g ADVISORS AND MANAGEABILITY FEATURES