SlideShare a Scribd company logo
1 of 46
Download to read offline
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
1
Automatic Workload
Repository: Soup to Nuts
Graham Wood
Doug Burns
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
3
 Independent Oracle Consultant
 Oracle ACE Director
 Oak Table Network
 The guy with the plushy toys
 http://oracledoug.com
Doug Burns
Background
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
4
 Performance guy
 Joined Oracle in 1986
 Architect in Oracle RDBMS dev
 Created Statspack and AWR
 Real World Performance Group
 Oak Table Member
Graham Wood
Background
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
5
Real World Performance at OOW13
Why is my SQL slow? Mon 13:45 Moscone South 102
Dilemmas in Middleware Tue 15:45 Moscone South 102
What Is Big Data, and What Makes It Big?
Wed 13:15 Moscone South 300
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
6
Program Agenda
 Basics
 AWR Reports
 Case Study
 Administration and Diagnostics
 Conclusions
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
7
Program Agenda
 Basics
 AWR Reports
 Case Study
 Administration and Diagnostics
 Conclusions
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
8
AWR Basics
 Repository for snapshots of Oracle performance data
 Introduced with Oracle 10g
 Licensed as part of Diagnostic Pack
 On by default
 Self-managing
Is this the Soup?
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
9
AWR Basics
 Capture performed by MMON process
 Captures data from V$ performance views
– Cumulative data e.g. V$SYSSTAT
– Data based on deltas e.g. V$SQL
– Active Session History
– Metrics
Snapshots
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
10
AWR Basics
 Process controlled by AWR metadata
 Settings visible in DBA_HIST_WR_CONTROL
 Metadata set using DBMS_WORKLOAD_REPOSITORY package
 Can also do manual snapshots
Snapshots
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
11
AWR Basics
 Stores data in AWR tables in SYSAUX tablespace
– WRH$_xxx for data
– WRM$_xxx for metadata
 Access data directly using DBA_HIST_xxx views
 Large tables are partitioned for ease of management
– Especially for purge
– Partition size depends on retention
– No license requirement
Snapshots
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
12
AWR Basics
SQL> select * from dba_hist_wr_control;
DBID SNAP_INTERVAL RETENTION TOPNSQL
---------- -------------------- -------------------- ----------
4001518076 +00000 01:00:00.0 +00008 00:00:00.0 DEFAULT
 One hour default snapshot interval
 Eight day default retention
– Data automatically purged after retention period
 Default TOPNSQL is 200 for each dimension
Default configuration
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
13
AWR Basics
 One hour or 30 minute snapshot interval
– If you think you need less, you are probably using the wrong data
– Attend Active Session History Deep Dive Moscone S Rm 104 Wed 15:30
 Retention based on business cycles
– Default (8 days) is great for a play database on a laptop
– 30+ days for your important databases
– 60/90 days commonly used
EXECUTE DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS
( interval => 60, retention => 60*24*90); -- 90 days
Recommended configuration
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
14
AWR Reports
 How many AWR reports are there?
– awrrpt.sql
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
15
AWR Reports
 How many AWR reports are there?
– awrrpt.sql Instance AWR report
– awrddrpt.sql Compare period report
– awrgrpt.sql RAC AWR report
– awrgdrpt.sql RAC Compare period report
– awrsqlrpt.sql AWR SQL history report
– ashrpt.sql ASH report
– addmrpt.sql ADDM report
Use the report based on the scope of the problem
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
16
 AWR averages data over the
whole snapshot interval
 Can mislead investigations
AWR Report
Beware!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
17
 AWR averages data over the
whole snapshot interval
 Can mislead investigations
 Event histograms help by
allowing outliers to be identified
AWR Report
Beware!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
18
AWR Reports
 Scope the problem before starting to analyze the data
 “AWR Report is very long”
 But you are not expected to read it all
 Top few pages contains high level summary
 Summary leads you to where to look next
Analyzing the AWR report
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
19
AWR Reports
 Look at the system overview unless you know the system well
– CPU cores
– Memory
– OS
– Oracle version
– RAC?
– Connected sessions
 Are any resources maxed out?
Analyzing the AWR report
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
20
AWR Reports
 If resource is maxed out, target that first
– DB CPU/sec => DB cores
– Paging/Swapping/High System time
 Otherwise focus on where DB Time is spent
– Top events
– Time model
– Top SQL
Analyzing the report
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
21
AWR Reports
 Or use Tyler Muth’s AWR Formatter for Chrome as a helper
http://tylermuth.wordpress.com/2011/04/20/awr-formatter/
 Or RUN THE ADDM REPORT
Analyzing the report
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
22
 Findings at top of report
 Full ADDM report towards end
of report
AWR Reports
ADDM included in 12c AWR
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
23
Real World Performance
Issue
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
24
Recent Client Performance Issue
 Regular early morning intensive batch data load
 Loads two different data sets of around 500 million rows each into two
new partitions
 Various aggregation and reporting steps at end of run
 One of the aggregation jobs had been running for over an hour rather
than a few minutes and had been killed
 On a Saturday morning (of course)
 When my replacements were all out of signal range (of course)
REAL World Performance is messy
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
25
Overall Approach
 Asking sensible questions
– How long does this usually run for?
 Few minutes
– When did it start running slowly?
 This morning
 Ran just fine every other day, including the previous day
 Start with the appropriate tools
 Use other tools for deeper analysis depending on the results
Performance Analysis is Informed Common Sense
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
26
The right tool for the job
 Performance of a specific job has changed from one day to the next
 Overall system performance seems fine
 Probably a SQL statement or two has changed execution plan
– But let's not start guessing!
 SQL Monitor screen might show long-running statement
– No, because the problem happened some time ago
 ASH data (including DBA_HIST_ACTIVE_SESS_HISTORY)
– Shows a long-running SQL_ID in second period, but not why
AWR, ASH and ADDM are a suite of different tools
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
27
Basic AWR report
 History of performance statistics
 The old way …
– Run two AWR (or even Statspack) reports
– Print them off
– Sit at desk with them laid side-by-side
– Read through massive reports trying to spot the differences
 The better way …
– AWR Compare Period Report
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
28
 Shows the database instance
and version information
 Usually the same, but could be
different databases and
instances (more later)
 Shows the two periods we are
comparing
AWR Compare Period Report
Summary
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
29
 Similar to Load Profile section
of basic report
 Shows both values side-by-side
for immediate easy comparison
 Calculates percentage
differences between two activity
periods
AWR Compare Period Report
Load Profile
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
30
 Where we are spending Time!
 Different events
 Different wait times
 Different contribution to DB Time
 Events that appear in one period
and not the other
AWR Compare Period Report
Top Timed Events
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
31
AWR Compare Period Report
Top Timed Events
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
32
 Single job running more slowly
than usual
 Check SQL statement Elapsed
Time Changes
 Shows statements that appear
in either or both of the snapshot
intervals
AWR Compare Period Report
SQL by Elapsed Time
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
33
AWR Compare Period Report
SQL by Elapsed Time
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
34
 Run for a specific SQL_ID over
a specific period of time
 Shows overall information for
Elapsed Time and Application
Instrumentation
 Shows that there are two
different Execution Plans!
AWR SQL Report
Summary
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
35
AWR SQL Report
Summary
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
36
 All sections appear for all
different plans
 Long Elapsed Time so this is
the culprit
 Lots of User I/O Wait Time
AWR SQL Report
Plan Statistics
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
37
 This is the bad guy!
 Standard Execution Plan format
 CONNECT BY query that
connects NODEs and EDGEs in
a hierarchical tree
AWR SQL Report
Execution Plans
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
38
 This is the usual plan!
 Same SQL statement operating
against different partitions
 With different stats
 Uses a different CONNECT BY
method that sorts to TEMP
 Quick fix solution – Hint!
AWR SQL Report
Execution Plans
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
39
Colored SQL
 TOPNSQL defines how many statements AWR should capture
– Over multiple dimensions
 AWR doesn't (and probably shouldn't) capture (by default)
– Infrequently executed SQL statements that don't consume resources
 Which means that you often won't find the 'Good Guy' for comparison
with the 'Bad Guy'
 dbms_workload_repository.add_colored_sql allows you to specify a
SQL_ID that will always be captured if it is in the cursor cache
Even an AWR fan curses it sometimes!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
40
AWR is a suite of analysis tools
 Working our way through different tools
 Looking at different aspects of overall system and session performance
 Deciding which are the most important
 Wouldn’t it be great if we had a tool that did that for us?
But it's not the only tool
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
41
 What did ADDM say?
 Host CPU was the issue
 Latch issue ranked third
ADDM
AWR Report use case
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
42
AWR Administration and Diagnostics
 Drop and recreate AWR
– catnoawr.sql
– catawr.sql
 Extract and Load
– awrextr.sql
– awrload.sql
It is self-managing!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
43
AWR Administration and Diagnostics
 Diagnose errors and performance issues
– "Troubleshooting: AWR Snapshot Collection issues (Doc ID 1301503.1)“
 Identifying snapshot errors
– WRM$_SNAP_ERROR
– Not starting
– Not completing
 Tracing snapshots
Ah, Nuts
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
44
AWR Administration and Diagnostics
 Diagnose errors and performance issues
– New in 11.2.0.2 WRM$_SNAPSHOT_DETAILS
Ah, Nuts
NAME TIME
--------------------- -----------------------------
WRH$_STAT_NAME +000000000 00:00:00.238
WRH$_PARAMETER_NAME +000000000 00:00:03.159
WRH$_EVENT_NAME +000000000 00:00:00.476
WRH$_LATCH_NAME +000000000 00:00:00.296
WRH$_FILESTATXS +000000000 00:00:00.041
WRH$_TEMPSTATXS +000000000 00:00:00.011
WRH$_DATAFILE +000000000 00:00:00.018
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
45
AWR Soup to Nuts
 On by default and self-managing
 Basket of tools for investigating performance issue
 Scope of issue should lead to choice of tool
 Drill down based on DB Time
 Remember to ask ADDM
It IS More Than Just AWRRPT
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template
46

More Related Content

Similar to con9578-2088758.pdf

Architecture performance and tips and tricks for instantis enterprise track 8...
Architecture performance and tips and tricks for instantis enterprise track 8...Architecture performance and tips and tricks for instantis enterprise track 8...
Architecture performance and tips and tricks for instantis enterprise track 8...p6academy
 
206510 p6 upgrade considerations
206510 p6 upgrade considerations206510 p6 upgrade considerations
206510 p6 upgrade considerationsp6academy
 
A3 oracle database 12c extreme performance for cloud computing
A3   oracle database 12c extreme performance for cloud computingA3   oracle database 12c extreme performance for cloud computing
A3 oracle database 12c extreme performance for cloud computingDr. Wilfred Lin (Ph.D.)
 
Oracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewOracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewFred Sim
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorTed Wennmark
 
Bilbao oracle12c keynote
Bilbao  oracle12c keynoteBilbao  oracle12c keynote
Bilbao oracle12c keynoteAitor Ibañez
 
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
 
Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14
Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14
Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14p6academy
 
Oracle Enterprise Manager 12c Cloud Control Upgrade
Oracle Enterprise Manager 12c Cloud Control UpgradeOracle Enterprise Manager 12c Cloud Control Upgrade
Oracle Enterprise Manager 12c Cloud Control UpgradeRevelation Technologies
 
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Jade Global
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Jade Global
 
Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helperMark Leith
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2Mario Redón Luz
 
Presentation automating failover with data guard in the cloud
Presentation   automating failover with data guard in the cloudPresentation   automating failover with data guard in the cloud
Presentation automating failover with data guard in the cloudxKinAnx
 
Developing Applications with MySQL and Java
Developing Applications with MySQL and JavaDeveloping Applications with MySQL and Java
Developing Applications with MySQL and JavaMark Matthews
 
Enabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA SuiteEnabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA SuiteRevelation Technologies
 
Security Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12cSecurity Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12cTroy Kitch
 
Ppt dbsec-oow2013-avdf
Ppt dbsec-oow2013-avdfPpt dbsec-oow2013-avdf
Ppt dbsec-oow2013-avdfMelody Liu
 
MySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMayank Prasad
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?DLT Solutions
 

Similar to con9578-2088758.pdf (20)

Architecture performance and tips and tricks for instantis enterprise track 8...
Architecture performance and tips and tricks for instantis enterprise track 8...Architecture performance and tips and tricks for instantis enterprise track 8...
Architecture performance and tips and tricks for instantis enterprise track 8...
 
206510 p6 upgrade considerations
206510 p6 upgrade considerations206510 p6 upgrade considerations
206510 p6 upgrade considerations
 
A3 oracle database 12c extreme performance for cloud computing
A3   oracle database 12c extreme performance for cloud computingA3   oracle database 12c extreme performance for cloud computing
A3 oracle database 12c extreme performance for cloud computing
 
Oracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewOracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c Overview
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
Bilbao oracle12c keynote
Bilbao  oracle12c keynoteBilbao  oracle12c keynote
Bilbao oracle12c keynote
 
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
 
Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14
Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14
Whats new in primavera unifier - Oracle Primavera P6 Collaborate 14
 
Oracle Enterprise Manager 12c Cloud Control Upgrade
Oracle Enterprise Manager 12c Cloud Control UpgradeOracle Enterprise Manager 12c Cloud Control Upgrade
Oracle Enterprise Manager 12c Cloud Control Upgrade
 
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
 
Performance schema and_ps_helper
Performance schema and_ps_helperPerformance schema and_ps_helper
Performance schema and_ps_helper
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
 
Presentation automating failover with data guard in the cloud
Presentation   automating failover with data guard in the cloudPresentation   automating failover with data guard in the cloud
Presentation automating failover with data guard in the cloud
 
Developing Applications with MySQL and Java
Developing Applications with MySQL and JavaDeveloping Applications with MySQL and Java
Developing Applications with MySQL and Java
 
Enabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA SuiteEnabling: Optimized Integrations at Amway with Oracle SOA Suite
Enabling: Optimized Integrations at Amway with Oracle SOA Suite
 
Security Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12cSecurity Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12c
 
Ppt dbsec-oow2013-avdf
Ppt dbsec-oow2013-avdfPpt dbsec-oow2013-avdf
Ppt dbsec-oow2013-avdf
 
MySQL Performance Schema : fossasia
MySQL Performance Schema : fossasiaMySQL Performance Schema : fossasia
MySQL Performance Schema : fossasia
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?
 

More from TricantinoLopezPerez

Oracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.pptOracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.pptTricantinoLopezPerez
 
pdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdf
pdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdfpdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdf
pdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdfTricantinoLopezPerez
 
exadata-database-machine-kpis-3224944.pdf
exadata-database-machine-kpis-3224944.pdfexadata-database-machine-kpis-3224944.pdf
exadata-database-machine-kpis-3224944.pdfTricantinoLopezPerez
 
kscope2013vst-130627142814-phpapp02.pdf
kscope2013vst-130627142814-phpapp02.pdfkscope2013vst-130627142814-phpapp02.pdf
kscope2013vst-130627142814-phpapp02.pdfTricantinoLopezPerez
 
TGorman Collab16 UnixTools 20160411.pdf
TGorman Collab16 UnixTools 20160411.pdfTGorman Collab16 UnixTools 20160411.pdf
TGorman Collab16 UnixTools 20160411.pdfTricantinoLopezPerez
 

More from TricantinoLopezPerez (11)

linux-memory-explained.pdf
linux-memory-explained.pdflinux-memory-explained.pdf
linux-memory-explained.pdf
 
sqltuning101-170419021007-2.pdf
sqltuning101-170419021007-2.pdfsqltuning101-170419021007-2.pdf
sqltuning101-170419021007-2.pdf
 
Oracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.pptOracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.ppt
 
pdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdf
pdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdfpdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdf
pdfslide.net_em12c-capacity-planning-with-oem-metrics_2.pdf
 
exadata-database-machine-kpis-3224944.pdf
exadata-database-machine-kpis-3224944.pdfexadata-database-machine-kpis-3224944.pdf
exadata-database-machine-kpis-3224944.pdf
 
TA110_System_Capacity_Plan.doc
TA110_System_Capacity_Plan.docTA110_System_Capacity_Plan.doc
TA110_System_Capacity_Plan.doc
 
kscope2013vst-130627142814-phpapp02.pdf
kscope2013vst-130627142814-phpapp02.pdfkscope2013vst-130627142814-phpapp02.pdf
kscope2013vst-130627142814-phpapp02.pdf
 
TGorman Collab16 UnixTools 20160411.pdf
TGorman Collab16 UnixTools 20160411.pdfTGorman Collab16 UnixTools 20160411.pdf
TGorman Collab16 UnixTools 20160411.pdf
 
BrownbagIntrotosqltuning.ppt
BrownbagIntrotosqltuning.pptBrownbagIntrotosqltuning.ppt
BrownbagIntrotosqltuning.ppt
 
sqltuningcardinality1(1).ppt
sqltuningcardinality1(1).pptsqltuningcardinality1(1).ppt
sqltuningcardinality1(1).ppt
 
ash-1-130820122404-phpapp01.pdf
ash-1-130820122404-phpapp01.pdfash-1-130820122404-phpapp01.pdf
ash-1-130820122404-phpapp01.pdf
 

Recently uploaded

Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computationsit20ad004
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 

Recently uploaded (20)

꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computation
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 

con9578-2088758.pdf

  • 1. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 1
  • 2. Automatic Workload Repository: Soup to Nuts Graham Wood Doug Burns
  • 3. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 3  Independent Oracle Consultant  Oracle ACE Director  Oak Table Network  The guy with the plushy toys  http://oracledoug.com Doug Burns Background
  • 4. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 4  Performance guy  Joined Oracle in 1986  Architect in Oracle RDBMS dev  Created Statspack and AWR  Real World Performance Group  Oak Table Member Graham Wood Background
  • 5. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 5 Real World Performance at OOW13 Why is my SQL slow? Mon 13:45 Moscone South 102 Dilemmas in Middleware Tue 15:45 Moscone South 102 What Is Big Data, and What Makes It Big? Wed 13:15 Moscone South 300
  • 6. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 6 Program Agenda  Basics  AWR Reports  Case Study  Administration and Diagnostics  Conclusions
  • 7. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 7 Program Agenda  Basics  AWR Reports  Case Study  Administration and Diagnostics  Conclusions
  • 8. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 8 AWR Basics  Repository for snapshots of Oracle performance data  Introduced with Oracle 10g  Licensed as part of Diagnostic Pack  On by default  Self-managing Is this the Soup?
  • 9. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 9 AWR Basics  Capture performed by MMON process  Captures data from V$ performance views – Cumulative data e.g. V$SYSSTAT – Data based on deltas e.g. V$SQL – Active Session History – Metrics Snapshots
  • 10. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 10 AWR Basics  Process controlled by AWR metadata  Settings visible in DBA_HIST_WR_CONTROL  Metadata set using DBMS_WORKLOAD_REPOSITORY package  Can also do manual snapshots Snapshots
  • 11. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 11 AWR Basics  Stores data in AWR tables in SYSAUX tablespace – WRH$_xxx for data – WRM$_xxx for metadata  Access data directly using DBA_HIST_xxx views  Large tables are partitioned for ease of management – Especially for purge – Partition size depends on retention – No license requirement Snapshots
  • 12. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 12 AWR Basics SQL> select * from dba_hist_wr_control; DBID SNAP_INTERVAL RETENTION TOPNSQL ---------- -------------------- -------------------- ---------- 4001518076 +00000 01:00:00.0 +00008 00:00:00.0 DEFAULT  One hour default snapshot interval  Eight day default retention – Data automatically purged after retention period  Default TOPNSQL is 200 for each dimension Default configuration
  • 13. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 13 AWR Basics  One hour or 30 minute snapshot interval – If you think you need less, you are probably using the wrong data – Attend Active Session History Deep Dive Moscone S Rm 104 Wed 15:30  Retention based on business cycles – Default (8 days) is great for a play database on a laptop – 30+ days for your important databases – 60/90 days commonly used EXECUTE DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS ( interval => 60, retention => 60*24*90); -- 90 days Recommended configuration
  • 14. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 14 AWR Reports  How many AWR reports are there? – awrrpt.sql
  • 15. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 15 AWR Reports  How many AWR reports are there? – awrrpt.sql Instance AWR report – awrddrpt.sql Compare period report – awrgrpt.sql RAC AWR report – awrgdrpt.sql RAC Compare period report – awrsqlrpt.sql AWR SQL history report – ashrpt.sql ASH report – addmrpt.sql ADDM report Use the report based on the scope of the problem
  • 16. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 16  AWR averages data over the whole snapshot interval  Can mislead investigations AWR Report Beware!
  • 17. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 17  AWR averages data over the whole snapshot interval  Can mislead investigations  Event histograms help by allowing outliers to be identified AWR Report Beware!
  • 18. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 18 AWR Reports  Scope the problem before starting to analyze the data  “AWR Report is very long”  But you are not expected to read it all  Top few pages contains high level summary  Summary leads you to where to look next Analyzing the AWR report
  • 19. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 19 AWR Reports  Look at the system overview unless you know the system well – CPU cores – Memory – OS – Oracle version – RAC? – Connected sessions  Are any resources maxed out? Analyzing the AWR report
  • 20. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 20 AWR Reports  If resource is maxed out, target that first – DB CPU/sec => DB cores – Paging/Swapping/High System time  Otherwise focus on where DB Time is spent – Top events – Time model – Top SQL Analyzing the report
  • 21. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 21 AWR Reports  Or use Tyler Muth’s AWR Formatter for Chrome as a helper http://tylermuth.wordpress.com/2011/04/20/awr-formatter/  Or RUN THE ADDM REPORT Analyzing the report
  • 22. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 22  Findings at top of report  Full ADDM report towards end of report AWR Reports ADDM included in 12c AWR
  • 23. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 23 Real World Performance Issue
  • 24. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 24 Recent Client Performance Issue  Regular early morning intensive batch data load  Loads two different data sets of around 500 million rows each into two new partitions  Various aggregation and reporting steps at end of run  One of the aggregation jobs had been running for over an hour rather than a few minutes and had been killed  On a Saturday morning (of course)  When my replacements were all out of signal range (of course) REAL World Performance is messy
  • 25. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 25 Overall Approach  Asking sensible questions – How long does this usually run for?  Few minutes – When did it start running slowly?  This morning  Ran just fine every other day, including the previous day  Start with the appropriate tools  Use other tools for deeper analysis depending on the results Performance Analysis is Informed Common Sense
  • 26. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 26 The right tool for the job  Performance of a specific job has changed from one day to the next  Overall system performance seems fine  Probably a SQL statement or two has changed execution plan – But let's not start guessing!  SQL Monitor screen might show long-running statement – No, because the problem happened some time ago  ASH data (including DBA_HIST_ACTIVE_SESS_HISTORY) – Shows a long-running SQL_ID in second period, but not why AWR, ASH and ADDM are a suite of different tools
  • 27. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 27 Basic AWR report  History of performance statistics  The old way … – Run two AWR (or even Statspack) reports – Print them off – Sit at desk with them laid side-by-side – Read through massive reports trying to spot the differences  The better way … – AWR Compare Period Report
  • 28. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 28  Shows the database instance and version information  Usually the same, but could be different databases and instances (more later)  Shows the two periods we are comparing AWR Compare Period Report Summary
  • 29. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 29  Similar to Load Profile section of basic report  Shows both values side-by-side for immediate easy comparison  Calculates percentage differences between two activity periods AWR Compare Period Report Load Profile
  • 30. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 30  Where we are spending Time!  Different events  Different wait times  Different contribution to DB Time  Events that appear in one period and not the other AWR Compare Period Report Top Timed Events
  • 31. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 31 AWR Compare Period Report Top Timed Events
  • 32. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 32  Single job running more slowly than usual  Check SQL statement Elapsed Time Changes  Shows statements that appear in either or both of the snapshot intervals AWR Compare Period Report SQL by Elapsed Time
  • 33. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 33 AWR Compare Period Report SQL by Elapsed Time
  • 34. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 34  Run for a specific SQL_ID over a specific period of time  Shows overall information for Elapsed Time and Application Instrumentation  Shows that there are two different Execution Plans! AWR SQL Report Summary
  • 35. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 35 AWR SQL Report Summary
  • 36. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 36  All sections appear for all different plans  Long Elapsed Time so this is the culprit  Lots of User I/O Wait Time AWR SQL Report Plan Statistics
  • 37. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 37  This is the bad guy!  Standard Execution Plan format  CONNECT BY query that connects NODEs and EDGEs in a hierarchical tree AWR SQL Report Execution Plans
  • 38. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 38  This is the usual plan!  Same SQL statement operating against different partitions  With different stats  Uses a different CONNECT BY method that sorts to TEMP  Quick fix solution – Hint! AWR SQL Report Execution Plans
  • 39. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 39 Colored SQL  TOPNSQL defines how many statements AWR should capture – Over multiple dimensions  AWR doesn't (and probably shouldn't) capture (by default) – Infrequently executed SQL statements that don't consume resources  Which means that you often won't find the 'Good Guy' for comparison with the 'Bad Guy'  dbms_workload_repository.add_colored_sql allows you to specify a SQL_ID that will always be captured if it is in the cursor cache Even an AWR fan curses it sometimes!
  • 40. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 40 AWR is a suite of analysis tools  Working our way through different tools  Looking at different aspects of overall system and session performance  Deciding which are the most important  Wouldn’t it be great if we had a tool that did that for us? But it's not the only tool
  • 41. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 41  What did ADDM say?  Host CPU was the issue  Latch issue ranked third ADDM AWR Report use case
  • 42. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 42 AWR Administration and Diagnostics  Drop and recreate AWR – catnoawr.sql – catawr.sql  Extract and Load – awrextr.sql – awrload.sql It is self-managing!
  • 43. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 43 AWR Administration and Diagnostics  Diagnose errors and performance issues – "Troubleshooting: AWR Snapshot Collection issues (Doc ID 1301503.1)“  Identifying snapshot errors – WRM$_SNAP_ERROR – Not starting – Not completing  Tracing snapshots Ah, Nuts
  • 44. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 44 AWR Administration and Diagnostics  Diagnose errors and performance issues – New in 11.2.0.2 WRM$_SNAPSHOT_DETAILS Ah, Nuts NAME TIME --------------------- ----------------------------- WRH$_STAT_NAME +000000000 00:00:00.238 WRH$_PARAMETER_NAME +000000000 00:00:03.159 WRH$_EVENT_NAME +000000000 00:00:00.476 WRH$_LATCH_NAME +000000000 00:00:00.296 WRH$_FILESTATXS +000000000 00:00:00.041 WRH$_TEMPSTATXS +000000000 00:00:00.011 WRH$_DATAFILE +000000000 00:00:00.018
  • 45. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 45 AWR Soup to Nuts  On by default and self-managing  Basket of tools for investigating performance issue  Scope of issue should lead to choice of tool  Drill down based on DB Time  Remember to ask ADDM It IS More Than Just AWRRPT
  • 46. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 46