SlideShare une entreprise Scribd logo
1  sur  56
Télécharger pour lire hors ligne
© Copyright 2015. Apps Associates LLC. 1
Oracle AWR/ASH Analysis
June 18, 2016
© Copyright 2015. Apps Associates LLC. 2
Satyendra Kumar Pasalapudi
Associate Practice Director – IMS, Cloud & Big data Practice
@ Apps Associates
Co Founder & President of AIOUG
@pasalapudi
http://orakhoj.blogspot.com
© Copyright 2014. Apps Associates LLC. 3
Agenda
• Oracle Time Model, Wait Classes, & Metrics
• ASH Architecture
• ADDM
• AWR Infrastructure
• SQL Plan Baseline Architecture
• Compare Period ADDM
• ASH Analytics
© Copyright 2014. Apps Associates LLC. 4
Automatic Workload Repository (AWR)
– Built-in repository of performance information ( Light Weight)
– Snapshots of database metrics taken every 60 minutes and retained
for 7 days
– Foundation for all self-management functions
– Data to find root cause and suggest remedies.
MMON
In-memory
statistics Snapshots
AWR
SGA
60 minutes
© Copyright 2014. Apps Associates LLC. 5
Managing the AWR
– Retention period
• The default is 7 days
• Consider storage needs
– Collection interval
• The default is
60 minutes
• Consider storage needs and performance impact
– Collection level
• Basic (disables most of ADDM functionality)
• Typical (recommended)
• All (adds additional SQL tuning information to snapshots)
© Copyright 2014. Apps Associates LLC. 6
Secret Behind the Success of AWR and all other self components from Oracle 10g
( ADDM , Metrics , Alerts) ?
© Copyright 2014. Apps Associates LLC. 7
AiSHwarya Rai
© Copyright 2014. Apps Associates LLC. 8
ASH ( Active Session History)
• Memory buffers in the fixed areas
• New Oracle Background Process
– MMNL – MMON Lite
• V$ACTIVE_SESSION_HISTORY
• X$ASH
• DBA_HIST_ACTIVE_SESS_HISTORY
– Based on WRH$_ACTIVE_SESSION_HISTORY
© Copyright 2014. Apps Associates LLC. 9
ASH Architecture
Circular buffer
in SGA
V$ACTIVE_SESSION_HISTORY
X$ASH
AWR
WRH$_ACTIVE_SESSION_HISTORY
Every
30 mins
or
when buffer is
full
Samples with
variable size rows
Direct-path
inserts
MMON
Lite
(MMNL)
Indexed on timeIndexed on time
© Copyright 2014. Apps Associates LLC. 10
ASH Details - General
• No installation or setup required
• Intended 30-min circular buffer in the SGA
• In memory ASH contains as much history as it can store.
– Circular buffer not cleared when written to disk
• ASH on Disk (1 of 10 in memory samples)
• Init.ora
– STATISTICS_LEVEL = TYPICAL (Default)
• Master Switch
– _ACTIVE_SESSION_HISTORY = TRUE (Default)
© Copyright 2014. Apps Associates LLC. 11
Session 1
Ash Samples Session State
TIME
10:00:00 10:00:01 10:00:02 10:00:03 10:00:04 10:00:05
© Copyright 2014. Apps Associates LLC. 12
Session 1
Ash Samples Session State
TIME? ? ? ? ?
Sessions change a lot quicker but can
get the main picture via sampling by
sampling faster
© Copyright 2014. Apps Associates LLC. 13
Session States
IO CPU IdleWait
© Copyright 2014. Apps Associates LLC. 14
Session States
• Idle
• CPU
• Waiting
• I/O
© Copyright 2014. Apps Associates LLC. 15
Session 1
Session 2
Session 3
Session 4
Samples for all users
10:15:00 10:15:01 10:15:02 10:15:03 10:15:04 10:15:05 10:15:06 10:15:07 TIME
© Copyright 2014. Apps Associates LLC. 16
v$active_session_history
SESSION_ID NUMBER
SESSION_SERIAL# NUMBER
USER_ID NUMBER
SERVICE_HASH NUMBER
SESSION_TYPE VARCHAR2(10)
PROGRAM VARCHAR2(64)
MODULE VARCHAR2(48)
ACTION VARCHAR2(32)
CLIENT_ID VARCHAR2(64)
EVENT VARCHAR2(64)
EVENT_ID NUMBER
EVENT# NUMBER
SEQ# NUMBER
P1 NUMBER
P2 NUMBER
P3 NUMBER
WAIT_TIME NUMBER
TIME_WAITED NUMBER
CURRENT_OBJ# NUMBER
CURRENT_FILE# NUMBER
CURRENT_BLOCK# NUMBER0
SQL_ID VARCHAR2(13)
SQL_CHILD_NUMBER NUMBER
SQL_PLAN_HASH_VALUE NUMBER
SQL_OPCODE NUMBER
QC_SESSION_ID NUMBER
QC_INSTANCE_ID NUMBER
SAMPLE_ID NUMBER
SAMPLE_TIME TIMESTAMP(3)
When
Session
SQL
Wait
SESSION_STATE VARCHAR2(7)
WAIT_TIME NUMBER
State
TIME_WAITED NUMBER Duration
AWR Infrastructure
SGA
V$ DBA_*
ADDM
Self-tuning
component
Self-tuning
component
…
Internal clients
External clients
EM SQL*Plus …
Efficient
in-memory
statistics
collection
AWR
snapshotsMMON
© Copyright 2014. Apps Associates LLC. 18
Automatic Database Diagnostic Monitor (ADDM)
– Runs after each AWR snapshot
– Monitors the instance; detects bottlenecks
– Stores results within the AWR
Snapshots
ADDM
AWR
EM
ADDM results
Advisory Framework
ADDM
SQL Tuning
Advisor
SQL Access
Advisor
Memory
Space
PGA Advisor
SGA
Segment Advisor
Undo Advisor
Buffer Cache
Advisor
Library Cache
Advisor
PGA
Backup MTTR Advisor
© Copyright 2014. Apps Associates LLC. 20
AWR TOP5 Timed Events – Wait Class
© Copyright 2014. Apps Associates LLC. 21
Active Sessions in OEM
© Copyright 2014. Apps Associates LLC. 22
AWR– Top Timed Events
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~
% Total
Event Waits Time (s) Ela Time
--------------------------- ------------ ----------- --------
db file sequential read 399,394,399 2,562,115 52.26
CPU time 960,825 19.60
buffer busy waits 122,302,412 540,757 11.03
PL/SQL lock timer 4,077 243,056 4.96
log file switch 188,701 187,648 3.83
(checkpoint incomplete)
© Copyright 2014. Apps Associates LLC. 23
Top 12 Waits
NAME Count % Total
1. db file sequential read 23,850.00 11.67%
2. log file sync 20,594.00 10.08%
3. db file scattered read 15,505.00 7.59%
4. latch free 11,078.00 5.42%
5. enqueue 7,732.00 3.78%
6. SQL*Net more data from client 7,510.00 3.67%
7. direct path read 5,840.00 2.86%
8. direct path write 4,868.00 2.38%
9. buffer busy waits 4,589.00 2.25%
10. SQL*Net more data to client 3,805.00 1.86%
11. log buffer space 2,990.00 1.46%
12. log file switch completion 2,878.00 1.41%
Above is over 80% of wait times reported
Top 36 Waits
19. write complete waits
20. library cache lock
21. SQL*Net more data from dblink
22. log file switch (checkpoint incomplete)
23. library cache load lock
24. row cache lock
25. local write wait
26. sort segment request
27. process startup
28. unread message
29. file identify
30. pipe put
31. switch logfile command
32. SQL*Net break/reset to dblink
33. log file switch (archiving needed)
34. Wait for a undo record
35. direct path write (lob)
36. undo segment extension
1. db file sequential read
2. log file sync
3. db file scattered read
4. latch free
5. enqueue
6. SQL*Net more data from client
7. direct path read
8. direct path write
9. buffer busy waits
10. SQL*Net more data to client
11. log buffer space
12. log file switch completion
13. library cache pin
14. SQL*Net break/reset to client
15. io done
16. file open
17. free buffer waits
18. db file parallel read
© Copyright 2014. Apps Associates LLC. 25
Waits
I/O
Library Cache
Locks
Redo
Buffer Cache
SQL*Net
Wait Areas
© Copyright 2014. Apps Associates LLC. 26
Wait Tree
Waits
IO
Buffer Cache
Library Cache
Lock
Redo
SQL Net
Buffer Busy
Rollback
Free lists
IO ReadCache Latches
Library Cache
Shared Pool
TX Row Lock
TX ITL Lock
HW Lock
Write IO
Read IO
Log Buffer
Log File Sync
Log File
© Copyright 2014. Apps Associates LLC. 27
OEM TOP Activity
© Copyright 2014. Apps Associates LLC. 28
OEM TOP Activity
© Copyright 2014. Apps Associates LLC. 29
OEM TOP Activity
© Copyright 2014. Apps Associates LLC. 30
Empty. Why?
Top 5 Timed Events – CPU time
© Copyright 2014. Apps Associates LLC. 31
• Because “CPU time” is not wait event. It is the time spent on CPU to do the
actual work.
Top 5 Timed Events – CPU time
© Copyright 2014. Apps Associates LLC. 32
• We had 60*60=3600 CPU Seconds to use in that interval if it is a single CPU
machine and 1 hour is the snap.
• If I tell you there were 32 CPUs, means:
60*60*32=115200 CPU seconds to use in 1 hr interval. “Assuming” only 1
Database is running on box and no other application load except Oracle database.
• (14,659/115,200)*100 = 12.73% of Total CPU
• So we are not CPU bound. “Hopefully”
Top 5 Timed Events – CPU time
© Copyright 2014. Apps Associates LLC. 33
What Is DB Time?
DB Time
© Copyright 2014. Apps Associates LLC. 34
DB Time =
DB Wait Time +
DB CPU Time
© Copyright 2014. Apps Associates LLC. 35
Parse cpu to Parse elapsed ratio?
• If you spend 1 CPU second on CPU to parse but total elapsed is 5 second wall
clock time then it means you are waiting on some resources to complete the
parsing.
• 100% ratio means parse CPU = Parse elapsed time so no waits or no contention.
© Copyright 2014. Apps Associates LLC. 36
• (8879/110582)*100=8.03%
How does Oracle calculates it?
© Copyright 2014. Apps Associates LLC. 37
What does this ratio mean?
• Parse CPU to Parse Elapsd %: 8.03
• It is percentage. 8.03% means .0803
• If you divide it by 1 then 1/.0803 = 12.45
• Which means 12.45 second (wall clock time) must be elapsed for every cpu
second for parsing. BAD
• It represents resource contention while parsing.
© Copyright 2014. Apps Associates LLC. 38
Execute to Parse Ratio?
• This a ratio which measures how many times a statement got executed as
opposed to parsed.
• if it is 99.99% then it means for 1 parse there are 10,000 executes.
• if it is 90% then it means for 1 parse there are 10 executes.
• For OLTP, good to be near 99%, for DSS it could be lower as “generally” all
sql statements/reports are unique.
© Copyright 2014. Apps Associates LLC. 39
• EXECUTE to PARSE = (1- parse/execute)
• 1-915,652/9,944,590 = 1-0.092 = 0.9079
• For percentage => .9079*100 = 90.79%
How does Oracle calculates it?
© Copyright 2014. Apps Associates LLC. 40
• EXECUTE to PARSE %= 90.79
• 1-parse/execute = .9079
• Parse/execute = 1-.9079
• Parse/execute = 0.0921
• Parse/execute = 921/10000
• For parse = 1 execute = 10.85
• So 1 parse for every ~11 executes.
What does this ratio mean?
© Copyright 2014. Apps Associates LLC. 41
© Copyright 2014. Apps Associates LLC. 42
© Copyright 2014. Apps Associates LLC. 43
Real Time ADDM - Challenges
 Sick Systems
 Database is very slow
 All user queries are very slow
 Performance Screens show slow data refresh rates
 There is significant reduction in throughput
 Database is hung due to internal contention for resources
 Database is totally unresponsive; no logon is allowed.
 User queries are hanging
 Performance screens do not refresh
 DBA is unable to logon to the instance because it is hung state
DBA did not find the blocking session to kill, Emergency Monitoring did not
provide the root cause
Real Time ADDM - Goals
 With 12c One can Switch to Real-Time ADDM before bouncing the instance
 starts collecting performance data from all database instances
 Analyzed recent data for systems paralyzed becuase of severe contention on
local or global resources
 Provides holistic analysis for systems experiencing unusally high database activity
 Detects findings for the recent activity(past 10 minutes)
 Offers actionable recommendations
 Use the recommendation to solve
 Return back to regular performance monitoring
Note: Can be invoked for RAC environment
© Copyright 2014. Apps Associates LLC. 46
Real Time ADDM
© Copyright 2014. Apps Associates LLC. 47
AWR Compare Periods Report
• Till now we have been comparing with two different snapshots either available
or preserved
• Comparison between DB replay capture and replay or two replays
• Pre 12c these reports are missing the intelligence and cannot map the root
cause with performance degradation.
© Copyright 2014. Apps Associates LLC. 48
ADDM Compare Periods – Cause to Effect
Analysis
© Copyright 2014. Apps Associates LLC. 49
Compare Period ADDM- 12c
Snapshot Offset
System Moving Window
Customize Period
© Copyright 2014. Apps Associates LLC. 50
Compare Period ADDM- 12c
© Copyright 2014. Apps Associates LLC. 51
Top Activity Page – Pre 12c
© Copyright 2014. Apps Associates LLC. 52
Top Activity Page Limitations
 Limitations with Top Activity till 11g
 One cannot switch dimensions on the area chart shown on the top part of the screen.
 The left hand table that is fixed to displaying TOP SQL, while the right hand table has only a few
dimensions that it can be displayed such top sessions or top modules
 The information does not harness the full value of ASH data as some key dimensions that are
actually captured with ASH data are not displayed at all
 The slider used to select the time period for the detailed section is fixed width with 5 minutes real
time and 30 minutes historical
 The data cannot be displayed as an active report. The visualization is restricted to a stacked area
chart by wait classes
© Copyright 2014. Apps Associates LLC. 53
ASH Analytics 12c
• Filter dimensions on the filters shown in the middle left part of the page
• One can select the dimensions for the left and right hand tables in the bottom
left and right parts of the page
• Vary the slider width to select the time period for the detailed section
• One can Drill into a load map view to display the different waits indicating the
importance of each by the size of the box.
© Copyright 2014. Apps Associates LLC. 54
ASH Analytics
© Copyright 2014. Apps Associates LLC. 55
ASH Analytics
@pasalapudi
Satyendra.pasalapudi@appsassociates.com
Satyendra.kumar@aioug.org

Contenu connexe

Tendances

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 eDB360Carlos Sierra
 
Oracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aasOracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aasKyle Hailey
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cTanel Poder
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWRpasalapudi
 
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...Carlos Sierra
 
Cluster Health Advisor (CHA) Deep Dive by Mark Scardina
Cluster Health Advisor (CHA)  Deep Dive by Mark ScardinaCluster Health Advisor (CHA)  Deep Dive by Mark Scardina
Cluster Health Advisor (CHA) Deep Dive by Mark ScardinaMarkus Michalewicz
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresJitendra Singh
 
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 Sandesh Rao
 
Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)Tanel Poder
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Glen Hawkins
 
Best Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle OptimizerBest Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle OptimizerEdgar Alejandro Villegas
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsAnil Nair
 
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 beginnersCarlos Sierra
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsZohar Elkayam
 

Tendances (20)

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 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aasOracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aas
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12c
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWR
 
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
Survey of some free Tools to enhance your SQL Tuning and Performance Diagnost...
 
Cluster Health Advisor (CHA) Deep Dive by Mark Scardina
Cluster Health Advisor (CHA)  Deep Dive by Mark ScardinaCluster Health Advisor (CHA)  Deep Dive by Mark Scardina
Cluster Health Advisor (CHA) Deep Dive by Mark Scardina
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and Underscores
 
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 Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)Tanel Poder Oracle Scripts and Tools (2010)
Tanel Poder Oracle Scripts and Tools (2010)
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Best Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle OptimizerBest Practices for Oracle Exadata and the Oracle Optimizer
Best Practices for Oracle Exadata and the Oracle Optimizer
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
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
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
 
AWR reports-Measuring CPU
AWR reports-Measuring CPUAWR reports-Measuring CPU
AWR reports-Measuring CPU
 

En vedette

Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014John Beresniewicz
 
AWR Ambiguity: Performance reasoning when the numbers don't add up
AWR Ambiguity: Performance reasoning when the numbers don't add upAWR Ambiguity: Performance reasoning when the numbers don't add up
AWR Ambiguity: Performance reasoning when the numbers don't add upJohn Beresniewicz
 
Awr1page - Sanity checking time instrumentation in AWR reports
Awr1page - Sanity checking time instrumentation in AWR reportsAwr1page - Sanity checking time instrumentation in AWR reports
Awr1page - Sanity checking time instrumentation in AWR reportsJohn Beresniewicz
 
REST and Microservices
REST and MicroservicesREST and Microservices
REST and MicroservicesShaun Abram
 
2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShare2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShareSlideShare
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShareSlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShareSlideShare
 

En vedette (8)

Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
 
AWR Ambiguity: Performance reasoning when the numbers don't add up
AWR Ambiguity: Performance reasoning when the numbers don't add upAWR Ambiguity: Performance reasoning when the numbers don't add up
AWR Ambiguity: Performance reasoning when the numbers don't add up
 
Awr1page - Sanity checking time instrumentation in AWR reports
Awr1page - Sanity checking time instrumentation in AWR reportsAwr1page - Sanity checking time instrumentation in AWR reports
Awr1page - Sanity checking time instrumentation in AWR reports
 
REST and Microservices
REST and MicroservicesREST and Microservices
REST and Microservices
 
JSON and REST
JSON and RESTJSON and REST
JSON and REST
 
2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShare2015 Upload Campaigns Calendar - SlideShare
2015 Upload Campaigns Calendar - SlideShare
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similaire à Awr + 12c performance tuning

Some Oracle AWR observations
Some Oracle AWR observationsSome Oracle AWR observations
Some Oracle AWR observationsConnor McDonald
 
Analyze database system using a 3 d method
Analyze database system using a 3 d methodAnalyze database system using a 3 d method
Analyze database system using a 3 d methodAjith Narayanan
 
Performance tuning intro
Performance tuning introPerformance tuning intro
Performance tuning introaioughydchapter
 
How to find what is making your Oracle database slow
How to find what is making your Oracle database slowHow to find what is making your Oracle database slow
How to find what is making your Oracle database slowSolarWinds
 
Geek Sync I CSI for SQL: Learn to be a SQL Sleuth
Geek Sync I CSI for SQL: Learn to be a SQL SleuthGeek Sync I CSI for SQL: Learn to be a SQL Sleuth
Geek Sync I CSI for SQL: Learn to be a SQL SleuthIDERA Software
 
KoprowskiT_SQLSatMoscow_2AMaDisaterJustBegan
KoprowskiT_SQLSatMoscow_2AMaDisaterJustBeganKoprowskiT_SQLSatMoscow_2AMaDisaterJustBegan
KoprowskiT_SQLSatMoscow_2AMaDisaterJustBeganTobias Koprowski
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportAlfredo Krieg
 
Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...
Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...
Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...rschuppe
 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerSurviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerMaris Elsins
 
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)Guruprasad Nagaraja
 
Find and fix SQL Server performance problems faster
Find and fix SQL Server performance problems fasterFind and fix SQL Server performance problems faster
Find and fix SQL Server performance problems fasterSolarWinds
 
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBeganKoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBeganTobias Koprowski
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMorgan Tocker
 
Architetture Serverless con SQL Server e Azure Functions
Architetture Serverless con SQL Server e Azure FunctionsArchitetture Serverless con SQL Server e Azure Functions
Architetture Serverless con SQL Server e Azure FunctionsMassimo Bonanni
 

Similaire à Awr + 12c performance tuning (20)

Some Oracle AWR observations
Some Oracle AWR observationsSome Oracle AWR observations
Some Oracle AWR observations
 
Analyze database system using a 3 d method
Analyze database system using a 3 d methodAnalyze database system using a 3 d method
Analyze database system using a 3 d method
 
Performance tuning intro
Performance tuning introPerformance tuning intro
Performance tuning intro
 
Performance Tuning intro
Performance Tuning introPerformance Tuning intro
Performance Tuning intro
 
How to find what is making your Oracle database slow
How to find what is making your Oracle database slowHow to find what is making your Oracle database slow
How to find what is making your Oracle database slow
 
Geek Sync I CSI for SQL: Learn to be a SQL Sleuth
Geek Sync I CSI for SQL: Learn to be a SQL SleuthGeek Sync I CSI for SQL: Learn to be a SQL Sleuth
Geek Sync I CSI for SQL: Learn to be a SQL Sleuth
 
KoprowskiT_SQLSatMoscow_2AMaDisaterJustBegan
KoprowskiT_SQLSatMoscow_2AMaDisaterJustBeganKoprowskiT_SQLSatMoscow_2AMaDisaterJustBegan
KoprowskiT_SQLSatMoscow_2AMaDisaterJustBegan
 
ASH and AWR on DB12c
ASH and AWR on DB12cASH and AWR on DB12c
ASH and AWR on DB12c
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR Report
 
Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...
Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...
Application Performance Troubleshooting 1x1 - Part 2 - Noch mehr Schweine und...
 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerSurviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource Manager
 
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
Performance Engineering Sterling MCS-OM - An Accenture Capability (3)
 
AWR, ASH with EM13 at HotSos 2016
AWR, ASH with EM13 at HotSos 2016AWR, ASH with EM13 at HotSos 2016
AWR, ASH with EM13 at HotSos 2016
 
Apouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12cApouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12c
 
Find and fix SQL Server performance problems faster
Find and fix SQL Server performance problems fasterFind and fix SQL Server performance problems faster
Find and fix SQL Server performance problems faster
 
Performance tuning in sql server
Performance tuning in sql serverPerformance tuning in sql server
Performance tuning in sql server
 
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBeganKoprowskiT_SQLDay2016_2AMaDisasterJustBegan
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that Matter
 
Architetture Serverless con SQL Server e Azure Functions
Architetture Serverless con SQL Server e Azure FunctionsArchitetture Serverless con SQL Server e Azure Functions
Architetture Serverless con SQL Server e Azure Functions
 
AWR and ASH in an EM12c World
AWR and ASH in an EM12c WorldAWR and ASH in an EM12c World
AWR and ASH in an EM12c World
 

Plus de AiougVizagChapter

All about Oracle Golden Gate by Udaya Kumar Pyla
All about Oracle Golden Gate by Udaya Kumar PylaAll about Oracle Golden Gate by Udaya Kumar Pyla
All about Oracle Golden Gate by Udaya Kumar PylaAiougVizagChapter
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cAiougVizagChapter
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAiougVizagChapter
 

Plus de AiougVizagChapter (6)

All about Oracle Golden Gate by Udaya Kumar Pyla
All about Oracle Golden Gate by Udaya Kumar PylaAll about Oracle Golden Gate by Udaya Kumar Pyla
All about Oracle Golden Gate by Udaya Kumar Pyla
 
Developer day v2
Developer day v2Developer day v2
Developer day v2
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18c
 
Aioug vizag ado_12c_aug20
Aioug vizag ado_12c_aug20Aioug vizag ado_12c_aug20
Aioug vizag ado_12c_aug20
 
Aioug big data and hadoop
Aioug  big data and hadoopAioug  big data and hadoop
Aioug big data and hadoop
 
Aioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_featuresAioug vizag oracle12c_new_features
Aioug vizag oracle12c_new_features
 

Dernier

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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...Martijn de Jong
 
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 organizationRadu Cotescu
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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?Antenna Manufacturer Coco
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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 textsMaria Levchenko
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
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.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Dernier (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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...
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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?
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Awr + 12c performance tuning

  • 1. © Copyright 2015. Apps Associates LLC. 1 Oracle AWR/ASH Analysis June 18, 2016
  • 2. © Copyright 2015. Apps Associates LLC. 2 Satyendra Kumar Pasalapudi Associate Practice Director – IMS, Cloud & Big data Practice @ Apps Associates Co Founder & President of AIOUG @pasalapudi http://orakhoj.blogspot.com
  • 3. © Copyright 2014. Apps Associates LLC. 3 Agenda • Oracle Time Model, Wait Classes, & Metrics • ASH Architecture • ADDM • AWR Infrastructure • SQL Plan Baseline Architecture • Compare Period ADDM • ASH Analytics
  • 4. © Copyright 2014. Apps Associates LLC. 4 Automatic Workload Repository (AWR) – Built-in repository of performance information ( Light Weight) – Snapshots of database metrics taken every 60 minutes and retained for 7 days – Foundation for all self-management functions – Data to find root cause and suggest remedies. MMON In-memory statistics Snapshots AWR SGA 60 minutes
  • 5. © Copyright 2014. Apps Associates LLC. 5 Managing the AWR – Retention period • The default is 7 days • Consider storage needs – Collection interval • The default is 60 minutes • Consider storage needs and performance impact – Collection level • Basic (disables most of ADDM functionality) • Typical (recommended) • All (adds additional SQL tuning information to snapshots)
  • 6. © Copyright 2014. Apps Associates LLC. 6 Secret Behind the Success of AWR and all other self components from Oracle 10g ( ADDM , Metrics , Alerts) ?
  • 7. © Copyright 2014. Apps Associates LLC. 7 AiSHwarya Rai
  • 8. © Copyright 2014. Apps Associates LLC. 8 ASH ( Active Session History) • Memory buffers in the fixed areas • New Oracle Background Process – MMNL – MMON Lite • V$ACTIVE_SESSION_HISTORY • X$ASH • DBA_HIST_ACTIVE_SESS_HISTORY – Based on WRH$_ACTIVE_SESSION_HISTORY
  • 9. © Copyright 2014. Apps Associates LLC. 9 ASH Architecture Circular buffer in SGA V$ACTIVE_SESSION_HISTORY X$ASH AWR WRH$_ACTIVE_SESSION_HISTORY Every 30 mins or when buffer is full Samples with variable size rows Direct-path inserts MMON Lite (MMNL) Indexed on timeIndexed on time
  • 10. © Copyright 2014. Apps Associates LLC. 10 ASH Details - General • No installation or setup required • Intended 30-min circular buffer in the SGA • In memory ASH contains as much history as it can store. – Circular buffer not cleared when written to disk • ASH on Disk (1 of 10 in memory samples) • Init.ora – STATISTICS_LEVEL = TYPICAL (Default) • Master Switch – _ACTIVE_SESSION_HISTORY = TRUE (Default)
  • 11. © Copyright 2014. Apps Associates LLC. 11 Session 1 Ash Samples Session State TIME 10:00:00 10:00:01 10:00:02 10:00:03 10:00:04 10:00:05
  • 12. © Copyright 2014. Apps Associates LLC. 12 Session 1 Ash Samples Session State TIME? ? ? ? ? Sessions change a lot quicker but can get the main picture via sampling by sampling faster
  • 13. © Copyright 2014. Apps Associates LLC. 13 Session States IO CPU IdleWait
  • 14. © Copyright 2014. Apps Associates LLC. 14 Session States • Idle • CPU • Waiting • I/O
  • 15. © Copyright 2014. Apps Associates LLC. 15 Session 1 Session 2 Session 3 Session 4 Samples for all users 10:15:00 10:15:01 10:15:02 10:15:03 10:15:04 10:15:05 10:15:06 10:15:07 TIME
  • 16. © Copyright 2014. Apps Associates LLC. 16 v$active_session_history SESSION_ID NUMBER SESSION_SERIAL# NUMBER USER_ID NUMBER SERVICE_HASH NUMBER SESSION_TYPE VARCHAR2(10) PROGRAM VARCHAR2(64) MODULE VARCHAR2(48) ACTION VARCHAR2(32) CLIENT_ID VARCHAR2(64) EVENT VARCHAR2(64) EVENT_ID NUMBER EVENT# NUMBER SEQ# NUMBER P1 NUMBER P2 NUMBER P3 NUMBER WAIT_TIME NUMBER TIME_WAITED NUMBER CURRENT_OBJ# NUMBER CURRENT_FILE# NUMBER CURRENT_BLOCK# NUMBER0 SQL_ID VARCHAR2(13) SQL_CHILD_NUMBER NUMBER SQL_PLAN_HASH_VALUE NUMBER SQL_OPCODE NUMBER QC_SESSION_ID NUMBER QC_INSTANCE_ID NUMBER SAMPLE_ID NUMBER SAMPLE_TIME TIMESTAMP(3) When Session SQL Wait SESSION_STATE VARCHAR2(7) WAIT_TIME NUMBER State TIME_WAITED NUMBER Duration
  • 17. AWR Infrastructure SGA V$ DBA_* ADDM Self-tuning component Self-tuning component … Internal clients External clients EM SQL*Plus … Efficient in-memory statistics collection AWR snapshotsMMON
  • 18. © Copyright 2014. Apps Associates LLC. 18 Automatic Database Diagnostic Monitor (ADDM) – Runs after each AWR snapshot – Monitors the instance; detects bottlenecks – Stores results within the AWR Snapshots ADDM AWR EM ADDM results
  • 19. Advisory Framework ADDM SQL Tuning Advisor SQL Access Advisor Memory Space PGA Advisor SGA Segment Advisor Undo Advisor Buffer Cache Advisor Library Cache Advisor PGA Backup MTTR Advisor
  • 20. © Copyright 2014. Apps Associates LLC. 20 AWR TOP5 Timed Events – Wait Class
  • 21. © Copyright 2014. Apps Associates LLC. 21 Active Sessions in OEM
  • 22. © Copyright 2014. Apps Associates LLC. 22 AWR– Top Timed Events Top 5 Timed Events ~~~~~~~~~~~~~~~~~~ % Total Event Waits Time (s) Ela Time --------------------------- ------------ ----------- -------- db file sequential read 399,394,399 2,562,115 52.26 CPU time 960,825 19.60 buffer busy waits 122,302,412 540,757 11.03 PL/SQL lock timer 4,077 243,056 4.96 log file switch 188,701 187,648 3.83 (checkpoint incomplete)
  • 23. © Copyright 2014. Apps Associates LLC. 23 Top 12 Waits NAME Count % Total 1. db file sequential read 23,850.00 11.67% 2. log file sync 20,594.00 10.08% 3. db file scattered read 15,505.00 7.59% 4. latch free 11,078.00 5.42% 5. enqueue 7,732.00 3.78% 6. SQL*Net more data from client 7,510.00 3.67% 7. direct path read 5,840.00 2.86% 8. direct path write 4,868.00 2.38% 9. buffer busy waits 4,589.00 2.25% 10. SQL*Net more data to client 3,805.00 1.86% 11. log buffer space 2,990.00 1.46% 12. log file switch completion 2,878.00 1.41% Above is over 80% of wait times reported
  • 24. Top 36 Waits 19. write complete waits 20. library cache lock 21. SQL*Net more data from dblink 22. log file switch (checkpoint incomplete) 23. library cache load lock 24. row cache lock 25. local write wait 26. sort segment request 27. process startup 28. unread message 29. file identify 30. pipe put 31. switch logfile command 32. SQL*Net break/reset to dblink 33. log file switch (archiving needed) 34. Wait for a undo record 35. direct path write (lob) 36. undo segment extension 1. db file sequential read 2. log file sync 3. db file scattered read 4. latch free 5. enqueue 6. SQL*Net more data from client 7. direct path read 8. direct path write 9. buffer busy waits 10. SQL*Net more data to client 11. log buffer space 12. log file switch completion 13. library cache pin 14. SQL*Net break/reset to client 15. io done 16. file open 17. free buffer waits 18. db file parallel read
  • 25. © Copyright 2014. Apps Associates LLC. 25 Waits I/O Library Cache Locks Redo Buffer Cache SQL*Net Wait Areas
  • 26. © Copyright 2014. Apps Associates LLC. 26 Wait Tree Waits IO Buffer Cache Library Cache Lock Redo SQL Net Buffer Busy Rollback Free lists IO ReadCache Latches Library Cache Shared Pool TX Row Lock TX ITL Lock HW Lock Write IO Read IO Log Buffer Log File Sync Log File
  • 27. © Copyright 2014. Apps Associates LLC. 27 OEM TOP Activity
  • 28. © Copyright 2014. Apps Associates LLC. 28 OEM TOP Activity
  • 29. © Copyright 2014. Apps Associates LLC. 29 OEM TOP Activity
  • 30. © Copyright 2014. Apps Associates LLC. 30 Empty. Why? Top 5 Timed Events – CPU time
  • 31. © Copyright 2014. Apps Associates LLC. 31 • Because “CPU time” is not wait event. It is the time spent on CPU to do the actual work. Top 5 Timed Events – CPU time
  • 32. © Copyright 2014. Apps Associates LLC. 32 • We had 60*60=3600 CPU Seconds to use in that interval if it is a single CPU machine and 1 hour is the snap. • If I tell you there were 32 CPUs, means: 60*60*32=115200 CPU seconds to use in 1 hr interval. “Assuming” only 1 Database is running on box and no other application load except Oracle database. • (14,659/115,200)*100 = 12.73% of Total CPU • So we are not CPU bound. “Hopefully” Top 5 Timed Events – CPU time
  • 33. © Copyright 2014. Apps Associates LLC. 33 What Is DB Time? DB Time
  • 34. © Copyright 2014. Apps Associates LLC. 34 DB Time = DB Wait Time + DB CPU Time
  • 35. © Copyright 2014. Apps Associates LLC. 35 Parse cpu to Parse elapsed ratio? • If you spend 1 CPU second on CPU to parse but total elapsed is 5 second wall clock time then it means you are waiting on some resources to complete the parsing. • 100% ratio means parse CPU = Parse elapsed time so no waits or no contention.
  • 36. © Copyright 2014. Apps Associates LLC. 36 • (8879/110582)*100=8.03% How does Oracle calculates it?
  • 37. © Copyright 2014. Apps Associates LLC. 37 What does this ratio mean? • Parse CPU to Parse Elapsd %: 8.03 • It is percentage. 8.03% means .0803 • If you divide it by 1 then 1/.0803 = 12.45 • Which means 12.45 second (wall clock time) must be elapsed for every cpu second for parsing. BAD • It represents resource contention while parsing.
  • 38. © Copyright 2014. Apps Associates LLC. 38 Execute to Parse Ratio? • This a ratio which measures how many times a statement got executed as opposed to parsed. • if it is 99.99% then it means for 1 parse there are 10,000 executes. • if it is 90% then it means for 1 parse there are 10 executes. • For OLTP, good to be near 99%, for DSS it could be lower as “generally” all sql statements/reports are unique.
  • 39. © Copyright 2014. Apps Associates LLC. 39 • EXECUTE to PARSE = (1- parse/execute) • 1-915,652/9,944,590 = 1-0.092 = 0.9079 • For percentage => .9079*100 = 90.79% How does Oracle calculates it?
  • 40. © Copyright 2014. Apps Associates LLC. 40 • EXECUTE to PARSE %= 90.79 • 1-parse/execute = .9079 • Parse/execute = 1-.9079 • Parse/execute = 0.0921 • Parse/execute = 921/10000 • For parse = 1 execute = 10.85 • So 1 parse for every ~11 executes. What does this ratio mean?
  • 41. © Copyright 2014. Apps Associates LLC. 41
  • 42. © Copyright 2014. Apps Associates LLC. 42
  • 43. © Copyright 2014. Apps Associates LLC. 43
  • 44. Real Time ADDM - Challenges  Sick Systems  Database is very slow  All user queries are very slow  Performance Screens show slow data refresh rates  There is significant reduction in throughput  Database is hung due to internal contention for resources  Database is totally unresponsive; no logon is allowed.  User queries are hanging  Performance screens do not refresh  DBA is unable to logon to the instance because it is hung state DBA did not find the blocking session to kill, Emergency Monitoring did not provide the root cause
  • 45. Real Time ADDM - Goals  With 12c One can Switch to Real-Time ADDM before bouncing the instance  starts collecting performance data from all database instances  Analyzed recent data for systems paralyzed becuase of severe contention on local or global resources  Provides holistic analysis for systems experiencing unusally high database activity  Detects findings for the recent activity(past 10 minutes)  Offers actionable recommendations  Use the recommendation to solve  Return back to regular performance monitoring Note: Can be invoked for RAC environment
  • 46. © Copyright 2014. Apps Associates LLC. 46 Real Time ADDM
  • 47. © Copyright 2014. Apps Associates LLC. 47 AWR Compare Periods Report • Till now we have been comparing with two different snapshots either available or preserved • Comparison between DB replay capture and replay or two replays • Pre 12c these reports are missing the intelligence and cannot map the root cause with performance degradation.
  • 48. © Copyright 2014. Apps Associates LLC. 48 ADDM Compare Periods – Cause to Effect Analysis
  • 49. © Copyright 2014. Apps Associates LLC. 49 Compare Period ADDM- 12c Snapshot Offset System Moving Window Customize Period
  • 50. © Copyright 2014. Apps Associates LLC. 50 Compare Period ADDM- 12c
  • 51. © Copyright 2014. Apps Associates LLC. 51 Top Activity Page – Pre 12c
  • 52. © Copyright 2014. Apps Associates LLC. 52 Top Activity Page Limitations  Limitations with Top Activity till 11g  One cannot switch dimensions on the area chart shown on the top part of the screen.  The left hand table that is fixed to displaying TOP SQL, while the right hand table has only a few dimensions that it can be displayed such top sessions or top modules  The information does not harness the full value of ASH data as some key dimensions that are actually captured with ASH data are not displayed at all  The slider used to select the time period for the detailed section is fixed width with 5 minutes real time and 30 minutes historical  The data cannot be displayed as an active report. The visualization is restricted to a stacked area chart by wait classes
  • 53. © Copyright 2014. Apps Associates LLC. 53 ASH Analytics 12c • Filter dimensions on the filters shown in the middle left part of the page • One can select the dimensions for the left and right hand tables in the bottom left and right parts of the page • Vary the slider width to select the time period for the detailed section • One can Drill into a load map view to display the different waits indicating the importance of each by the size of the box.
  • 54. © Copyright 2014. Apps Associates LLC. 54 ASH Analytics
  • 55. © Copyright 2014. Apps Associates LLC. 55 ASH Analytics