SlideShare une entreprise Scribd logo
1  sur  75
Télécharger pour lire hors ligne
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Performance Data with EM13c and
DB12c
AWR , ASH and Other Performance Data Deep Dive
Kellyn Pot’Vin-Gorman
Consulting Member of Technical Staff, SCP
Enterprise Manager
March, 2016
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
DBA Kevlar, the Geek Goth Girl
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Why an Updated Session
While building and testing the Performance Tuning DB12c exam, it became
apparent is was needed.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Revisit to AWR
Top Changes
Automatic Workload Repository
Active Session History
The Rest of the Cool Stuff
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
Revisit to AWR
Top Changes
Automatic Workload Repository
Active Session History
The Rest of the Cool Stuff
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
History of AWR and ASH
• ASH= Active Session History
• AWR= Automatic Workload Repository
• Introduced in Oracle 10g
• Evolution to statspack, requests for performance reporting
improvements.
• “Always on” approach to performance metrics with requirement of non-
locking collection process.
• Requires Management Diagnostic Pack License from Oracle.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
AWR and ASH Architecture
DBA_HIST Views
V$ Views
Along with AWR Data
Memory Buffers write one way, users read the
opposite direction!
and MMON
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Why Do We Combine Diagnostic and Tuning Packs?
Tuning Pack includes the Following:
• SQL Monitor
• SQL Access Advisor
• SQL Tuning Advisor
These products source their data from AWR….
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Other Important Reports to know:
$ORACLE_HOME/rdbms/admin/awrrpt.sql;
$ORACLE_HOME/rdbms/admin/ashrpt.sql;
$ORACLE_HOME/rdbms/admin/awrsqlrpt.sql;
awrinfo.sql General AWR Info –Very important for AWR Warehouse!
awrddrpt.sql Comparison report between snapshots
awrgrpt.sql RAC Aware AWR Report.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
What NOT to DO to the AWR
• Underscore parameter changes to spfile that change the default settings
for ASH samples, intervals, etc.
– DON’T DO IT. Step away….walk away from the keyboard. NOW.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
Revisit to AWR
Top Changes
Automatic Workload Repository
Active Session History
Rest of the Cool Stuff
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
A lot of additions for In-Memory!
• Manageability support for In-Memory Column Store
• The new Oracle Database In-Memory Column Store (IM column store)
feature accelerates database performance of analytics, data warehousing,
and online transaction processing (OLTP) applications.
• SQL Monitor report, ASH report, and AWR report now show statistics for
various in-memory operations.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Configuring is Now a Breeze
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Managing Even Easier with In-Memory Central
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
New to ASH Analytics
Average Active Sessions chart
• Click on CPU wait class to see its breakdown by CPU usage for various in-
memory operations
• View various CPU used for operations other than in-memory operations.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Why Are These Changes Important?
In-memory Column store data is very quick to query, but just like other
features, if advanced sorting and “massaging” of the data is required,
complex performance issues can arise.
AWR and Enterprise Manager offers a window into these when challenges
occur.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
Revisit to AWR
Top Changes
Automatic Workload Repository
Active Session History
The Rest of the Cool Stuff
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Report Changes
Top ADDM Findings as Part of the AWR Report
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Foreground Events
Displays Top TEN Foreground Events
CPU Should be
top…to a point…
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Top Elapsed Time is Still King
Tune for time or you’re wasting time…
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Changes in AWR Report for In-Memory
In-Memory Segments Statistics
• Shows in-memory segment consumption based on various attributes,
such as, scans, DB block changes, populate CUs, and repopulate CUs.
• Time Model Statistics section shows statistics related to in-memory CPU
usage and Instance Activity Statistics section shows statistics related to
in-memory activities.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Wait Class by Total Wait Time
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
The IO Profile
For OLAP and DSS Systems, Great Section in Report
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Other New Sections
• Goldengate
• Xstreams
• Resource Stats
• Advanced Queuing Data
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Example of Why AWR is Still the Gold Standard
• EM Health Review in Preparation to Upgrade to EM13c
• EM Diagnostics is Run on Repository, OMS and Agents.
• Author of Diagnostics starts from OMS tier, unsure of what is impact
Where do I start in the Diagnostics data as an Optimization DB Specialist?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
AWR Data in Part of EM Diagnostics, (OMSVFY)
There are no
mviews in the
OMR!
Never heard of you!
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Physical Reads
You both are an
unknown!
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
The Folly
Created Materialized View
on top of Metric Tables
Used by Enterprise Mgr
Mview created pressure
on roll up processing that
aggregate the data from
source tables.
To eliminate the
overhead, the rollup
jobs were shut off
Mview AND EM console
slow to unusable state as
raw metric tables become
huge.
Creates
own
schema
objects
Loads
more
into own
objects
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Time Requirements
Without Using AWR Data for Healthcheck to Diagnose Performance Issues
With Using AWR Data for Healthcheck to Diagnose Performance Issues
8 Months and No Answer
12 Hours and Resolution
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
Revisit to AWR
Top Changes
Automatic Workload Repository
Active Session History
The Rest of the Cool Stuff
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
The Best of ASH
1. Active Session History work off ASH Time with ASH samples and not
exclusive to AWR snapshots.
2. Small Windows of time to isolate database challenges.
3. Shows the “Forrest for the Trees”. Great for Complex Issues.
4. Includes Blocking, DOP, Procedural calls and session information.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ASH Report Changes
• ASH report header table shows the size of in-memory pool under In
Memory Area column.
• Top Events, Top SQL, and Activity Over Time sections show CPU
consumption by various in-memory operations.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
P Value Top Events
Table Presented
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Saves You From Having to do This:
The values represent:
P1—The absolute file number for the data file involved in the wait.
P2—The block number within the data file referenced in P1 that is being
waited upon.
P3—The reason code describing why the wait is occurring.
select
p1 "File #“, p2 "Block #", p3 "Reason Code“ from
v$session_wait
where event = 'xxx';
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Know the Module, Know the Action
Shows Percentage of Activity for Action
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Top SQL and PL/SQL Procedures
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Blocking Sessions Displayed Clearly
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
How Did it Change Over The Time Elapse?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ASH Analtyics, the New Top Activity
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Details of SQL and Sessions…Plus More
Capability to update each column to demonstrate different data.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
The Chameleon
View Data by Wait Class and Blocking Sessions
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Using ASH Analtyics with Search SQL
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Searching SQL with ASH Analytics
• Copy SQL_ID from ASH
Analtyics
• Go to Search SQL
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Change Defaults
Include AWR, (ALL) and AWR
Baselines. Paste in the
SQL_ID before clicking on
“RUN”
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Remember the Tabs
Click on SQL_ID to
proceed to Details
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Why ASH shouldn’t be used for Auditing
Thanks to
Graham, Uri and
JB for this
wonderful
graphic!
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Why Time is Important
Database Time
• Total time spent by sessions in the database server actively working,
(CPU) or actively waiting, (aka non-idle.)
Active Sessions
• The number of active sessions, (including waiting) in the database server
at a specific time is the rate of change of database time during that
period, (aka workload.)
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Understanding ASH Time
DBTime is calculated as an approximate made up by multiplying sampling
interval by the total count of the samples.
Keeping in mind that each sample represents 1 second of DBTime…..
Then ASH Math results in:
COUNT(*) = <DBTime>
GROUP BY <Wait Event>
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ASH Mining
Querying ASH, (V$ or
GV$ACTIVE_SESSION_HISTORY)
Data DIRECTLY to Answer a
Question….
• What are the top ten SQL ID’s
in the last ten minutes?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
How Often Were SQL ID’s on CPU vs. Waiting on CPU?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Monitoring Database Activity, New School
SQL Monitor:
Is it done yet? Did it use parallel? What important data do we know?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Change My View, Change My Outlook
By updating the “Top 100 by” options, the data returned changes-
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Details Top Info
• If it’s Exadata, It will show offload percentage.
• If it’s In-memory, it will include In-memory information.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
What Kind of Resources in Layman Terms?
Very little and I can prove it….
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
SQL Monitor and Adaptive Plans
The Execution plan shows
The Plan Statistics tab contains a drop down list to show current plan, final
plan, and full plan. It also contains Plan Note button, which when clicked,
shows the notes that are generated in the explain plan for the SQL
statement.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Monitoring
Use SQL Monitor.
Execute on DBMS_SQL_MONITOR.REPORT_SQL_MONITOR
View on V$SQL_MONITOR and V$SQL_PLAN_MONITOR
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Adaptive Plans in SQL Monitor
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
Revisit to AWR
Top Changes
Automatic Workload Repository
Active Session History
The Rest of the Cool Stuff
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ASH Report Running Slow
ASH Report taking over 8 hrs to complete!
Sticking while pulling plan information on top SQL.
Pulled Execution plan- joins to X$ tables to
GV$Active_Session__History
Merge Join Cartesians and million row hash table that wasn’t possible
for amount of data in ash buffer.
Collected fixed stats, (X$ tables) to correct.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Enterprise Manager Slowness
Shut off SQL Baselines, (EM is NEVER GOING TO USE THEM!!
SQL> ALTER SYSTEM SET optimizer_capture_sql_plan_baselines=false SCOPE=both;
SQL> ALTER SYSTEM SET optimizer_use_sql_plan_baselines=false SCOPE=both;
Tune the Job Pool, 1st get recommendation
$ repvfy verify jobs -test 6007 -details
Then update to recommended value:
$ emctl set property -name oracle.sysman.core.conn.maxConnForJobWorkers
-value <recommended> -module emoms
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Tips to Tuning the Enterprise Manager-
Java Heap is used heavily with the JVMD built into EM13c.
Update from the default to 8Gb is highly recommended:
$ emctl set property -name JAVA_EM_MEM_ARGS
-value "-Xms256m –Xmx8192m -XX:MaxPermSize=768M -
XX:+UseConcMarkSweepGC
-XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled
-XX:CompileThreshold=8000 -XX:PermSize=128m"
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
The AWR Warehouse
• Central warehouse configured for
long term AWR data retention
• Historical and ongoing AWR
snapshots collected from databases
enabled for AWR warehouse
• ETL jobs moves snapshots from
source databases into AWR
warehouse
• Retention period configurable for
weeks, months, years or forever
(default)
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
AWR ETL Jobs
DBMS Job on Source Database
to directory
Job in EM Job Service that
pulls file from Source
Target and then pushes to
AWR Warehouse Target
Directory Final DBMS Job Inserts data
into AWR Warehouse
All data identified by OLD/NEW DBID and
with the EM_ID, (CAW_DBID_MAPPING in
AWR WAREHOUSE)
Source Target
Enterprise Manager
AWR Warehouse
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Interface
• Warehouse dashboard tracking
ETL jobs
• All AWR features available on long
term AWR data
• Performance page
• AWR report
• ASH analytics
• Compare Period ADDM
• Compare Period Report
• Integrated seamlessly into EM UI
• Zero runtime overhead on source
Production databases
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
New More Efficient Job Interface
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ADDM Comparison in AWR Warehouse
Yes, you can compare one
snapshot against another
snapshot in DIFFERENT
database! 
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
CAW_DBID_MAPPING Table and AWR Mining
Most important table for anyone querying the AWR
Warehouse!
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
How Current AWR Mining Queries Change
from dba_hist_sys_time_model stm, dba_hist_snapshot s, gv$parameter p, dbsnmp.caw_dbid_mapping m
where stm.stat_name in ('DB CPU','background cpu time')
and LOWER(m.target_name)= '&dbname'
and s.dbid= m.new_dbid and s.snap_id = stm.snap_id
and s.dbid = stm.dbid and s.instance_number = stm.instance_number
and p.name = 'cpu_count' and p.inst_id = s.instance_number)
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
CPU Usage Issues
“Nothing’s changed in
months…”
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Answer Specific IT Questions
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Questions?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Connect with me via Social Media:
AWR, ASH with EM13 at HotSos 2016

Contenu connexe

Tendances

Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Aaron Shilo
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
udaymoogala
 
Arquitectura de Oracle 11g r2
Arquitectura de Oracle 11g r2Arquitectura de Oracle 11g r2
Arquitectura de Oracle 11g r2
Carmen Soler
 

Tendances (20)

Oracle MAA Best Practices - Applications Considerations
Oracle MAA Best Practices - Applications ConsiderationsOracle MAA Best Practices - Applications Considerations
Oracle MAA Best Practices - Applications Considerations
 
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
 
AWR and ASH Deep Dive
AWR and ASH Deep DiveAWR and ASH Deep Dive
AWR and ASH Deep Dive
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#3
 
Oracle license management training part 3
Oracle license management training part 3Oracle license management training part 3
Oracle license management training part 3
 
Difference between Client Polling vs Server Push vs Websocket vs Long Polling
Difference between Client Polling vs Server Push vs Websocket vs Long PollingDifference between Client Polling vs Server Push vs Websocket vs Long Polling
Difference between Client Polling vs Server Push vs Websocket vs Long Polling
 
Spark + S3 + R3를 이용한 데이터 분석 시스템 만들기
Spark + S3 + R3를 이용한 데이터 분석 시스템 만들기Spark + S3 + R3를 이용한 데이터 분석 시스템 만들기
Spark + S3 + R3를 이용한 데이터 분석 시스템 만들기
 
Odoo Performance Limits
Odoo Performance LimitsOdoo Performance Limits
Odoo Performance Limits
 
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
 
AWR reports-Measuring CPU
AWR reports-Measuring CPUAWR reports-Measuring CPU
AWR reports-Measuring CPU
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Awr + 12c performance tuning
Awr + 12c performance tuningAwr + 12c performance tuning
Awr + 12c performance tuning
 
Zdlra copy to cloud
Zdlra copy to cloudZdlra copy to cloud
Zdlra copy to cloud
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
Arquitectura de Oracle 11g r2
Arquitectura de Oracle 11g r2Arquitectura de Oracle 11g r2
Arquitectura de Oracle 11g r2
 
My SYSAUX tablespace is full, please
My SYSAUX tablespace is full, pleaseMy SYSAUX tablespace is full, please
My SYSAUX tablespace is full, please
 
Performance Analysis: The USE Method
Performance Analysis: The USE MethodPerformance Analysis: The USE Method
Performance Analysis: The USE Method
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate Microservices
 
Elasticsearch 한글 형태소 분석기 Nori 노리
Elasticsearch 한글 형태소 분석기 Nori 노리Elasticsearch 한글 형태소 분석기 Nori 노리
Elasticsearch 한글 형태소 분석기 Nori 노리
 
Apache storm vs. Spark Streaming
Apache storm vs. Spark StreamingApache storm vs. Spark Streaming
Apache storm vs. Spark Streaming
 

En vedette (7)

Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
 
Oracle Enterprise Manager Cloud Control 13c for DBAs
Oracle Enterprise Manager Cloud Control 13c for DBAsOracle Enterprise Manager Cloud Control 13c for DBAs
Oracle Enterprise Manager Cloud Control 13c for DBAs
 
Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)Top 10 tips for Oracle performance (Updated April 2015)
Top 10 tips for Oracle performance (Updated April 2015)
 
Using AWR/Statspack for Wait Analysis
Using AWR/Statspack for Wait AnalysisUsing AWR/Statspack for Wait Analysis
Using AWR/Statspack for Wait Analysis
 
Reading AWR or Statspack Report - Straight to the Goal
Reading AWR or Statspack Report - Straight to the GoalReading AWR or Statspack Report - Straight to the Goal
Reading AWR or Statspack Report - Straight to the Goal
 
Analyzing and Interpreting AWR
Analyzing and Interpreting AWRAnalyzing and Interpreting AWR
Analyzing and Interpreting AWR
 

Similaire à AWR, ASH with EM13 at HotSos 2016

Getting optimal performance from oracle e business suite(aioug aug2015)
Getting optimal performance from oracle e business suite(aioug aug2015)Getting optimal performance from oracle e business suite(aioug aug2015)
Getting optimal performance from oracle e business suite(aioug aug2015)
pasalapudi123
 

Similaire à AWR, ASH with EM13 at HotSos 2016 (20)

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
 
Kellyn Pot'Vin-Gorman - Awr and Ash
Kellyn Pot'Vin-Gorman - Awr and AshKellyn Pot'Vin-Gorman - Awr and Ash
Kellyn Pot'Vin-Gorman - Awr and Ash
 
UKOUG
UKOUG UKOUG
UKOUG
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
 
Oracle Cloud Café hybrid Cloud 19 mai 2016
Oracle Cloud Café hybrid Cloud 19 mai 2016Oracle Cloud Café hybrid Cloud 19 mai 2016
Oracle Cloud Café hybrid Cloud 19 mai 2016
 
Oracle Management Cloud - HybridCloud Café - May 2016
Oracle Management Cloud - HybridCloud Café - May 2016Oracle Management Cloud - HybridCloud Café - May 2016
Oracle Management Cloud - HybridCloud Café - May 2016
 
Streamline it management
Streamline it managementStreamline it management
Streamline it management
 
Kellyn Pot'Vin-Gorman - Power awr warehouse2
Kellyn Pot'Vin-Gorman - Power awr warehouse2Kellyn Pot'Vin-Gorman - Power awr warehouse2
Kellyn Pot'Vin-Gorman - Power awr warehouse2
 
Enterprise manager 13c
Enterprise manager 13cEnterprise manager 13c
Enterprise manager 13c
 
Updated Power of the AWR Warehouse, Dallas, HQ, etc.
Updated Power of the AWR Warehouse, Dallas, HQ, etc.Updated Power of the AWR Warehouse, Dallas, HQ, etc.
Updated Power of the AWR Warehouse, Dallas, HQ, etc.
 
PASS Summit 2020
PASS Summit 2020PASS Summit 2020
PASS Summit 2020
 
Getting optimal performance from oracle e business suite
Getting optimal performance from oracle e business suiteGetting optimal performance from oracle e business suite
Getting optimal performance from oracle e business suite
 
Getting optimal performance from oracle e business suite(aioug aug2015)
Getting optimal performance from oracle e business suite(aioug aug2015)Getting optimal performance from oracle e business suite(aioug aug2015)
Getting optimal performance from oracle e business suite(aioug aug2015)
 
Oracle Cloud
Oracle CloudOracle Cloud
Oracle Cloud
 
Oracle ORAchk - An Overview Guide to Oracle Stack Health Checks
Oracle ORAchk - An Overview Guide to Oracle Stack Health ChecksOracle ORAchk - An Overview Guide to Oracle Stack Health Checks
Oracle ORAchk - An Overview Guide to Oracle Stack Health Checks
 
Performance Tuning intro
Performance Tuning introPerformance Tuning intro
Performance Tuning intro
 
Ash and awr performance data2
Ash and awr performance data2Ash and awr performance data2
Ash and awr performance data2
 
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceBeyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
 
New Features in Oracle ORAchk & EXAchk 12.2.0.1.1
New Features in Oracle ORAchk & EXAchk 12.2.0.1.1New Features in Oracle ORAchk & EXAchk 12.2.0.1.1
New Features in Oracle ORAchk & EXAchk 12.2.0.1.1
 
TDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQLTDC2016SP - Trilha NoSQL
TDC2016SP - Trilha NoSQL
 

Plus de Kellyn Pot'Vin-Gorman

Plus de Kellyn Pot'Vin-Gorman (20)

Redgate_summit_atl_kgorman_intersection.pptx
Redgate_summit_atl_kgorman_intersection.pptxRedgate_summit_atl_kgorman_intersection.pptx
Redgate_summit_atl_kgorman_intersection.pptx
 
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptxSQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
 
Boston_sql_kegorman_highIO.pptx
Boston_sql_kegorman_highIO.pptxBoston_sql_kegorman_highIO.pptx
Boston_sql_kegorman_highIO.pptx
 
Oracle on Azure IaaS 2023 Update
Oracle on Azure IaaS 2023 UpdateOracle on Azure IaaS 2023 Update
Oracle on Azure IaaS 2023 Update
 
IaaS for DBAs in Azure
IaaS for DBAs in AzureIaaS for DBAs in Azure
IaaS for DBAs in Azure
 
Being Successful with ADHD
Being Successful with ADHDBeing Successful with ADHD
Being Successful with ADHD
 
Azure DBA with IaaS
Azure DBA with IaaSAzure DBA with IaaS
Azure DBA with IaaS
 
Turning ADHD into "Awesome Dynamic Highly Dependable"
Turning ADHD into "Awesome Dynamic Highly Dependable"Turning ADHD into "Awesome Dynamic Highly Dependable"
Turning ADHD into "Awesome Dynamic Highly Dependable"
 
DevOps in Silos
DevOps in SilosDevOps in Silos
DevOps in Silos
 
Azure Databases with IaaS
Azure Databases with IaaSAzure Databases with IaaS
Azure Databases with IaaS
 
How to Win When Migrating to Azure
How to Win When Migrating to AzureHow to Win When Migrating to Azure
How to Win When Migrating to Azure
 
Securing Power BI Data
Securing Power BI DataSecuring Power BI Data
Securing Power BI Data
 
Cepta The Future of Data with Power BI
Cepta The Future of Data with Power BICepta The Future of Data with Power BI
Cepta The Future of Data with Power BI
 
Pass Summit Linux Scripting for the Microsoft Professional
Pass Summit Linux Scripting for the Microsoft ProfessionalPass Summit Linux Scripting for the Microsoft Professional
Pass Summit Linux Scripting for the Microsoft Professional
 
Taming the shrew Power BI
Taming the shrew Power BITaming the shrew Power BI
Taming the shrew Power BI
 
PASS 24HOP Linux Scripting Tips and Tricks
PASS 24HOP Linux Scripting Tips and TricksPASS 24HOP Linux Scripting Tips and Tricks
PASS 24HOP Linux Scripting Tips and Tricks
 
Power BI with Essbase in the Oracle Cloud
Power BI with Essbase in the Oracle CloudPower BI with Essbase in the Oracle Cloud
Power BI with Essbase in the Oracle Cloud
 
ODTUG Leadership Talk- WIT and Sponsorship
ODTUG Leadership Talk-  WIT and SponsorshipODTUG Leadership Talk-  WIT and Sponsorship
ODTUG Leadership Talk- WIT and Sponsorship
 
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
DevOps and Decoys  How to Build a Successful Microsoft DevOps Including the DataDevOps and Decoys  How to Build a Successful Microsoft DevOps Including the Data
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
 
GDPR- The Buck Stops Here
GDPR-  The Buck Stops HereGDPR-  The Buck Stops Here
GDPR- The Buck Stops Here
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
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
Earley Information Science
 

Dernier (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

AWR, ASH with EM13 at HotSos 2016

  • 1.
  • 2. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Performance Data with EM13c and DB12c AWR , ASH and Other Performance Data Deep Dive Kellyn Pot’Vin-Gorman Consulting Member of Technical Staff, SCP Enterprise Manager March, 2016
  • 3. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | DBA Kevlar, the Geek Goth Girl
  • 4. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 5. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Why an Updated Session While building and testing the Performance Tuning DB12c exam, it became apparent is was needed.
  • 6. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Program Agenda Revisit to AWR Top Changes Automatic Workload Repository Active Session History The Rest of the Cool Stuff 1 2 3 4 5
  • 7. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Program Agenda with Highlight Revisit to AWR Top Changes Automatic Workload Repository Active Session History The Rest of the Cool Stuff 1 2 3 4 5
  • 8. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | History of AWR and ASH • ASH= Active Session History • AWR= Automatic Workload Repository • Introduced in Oracle 10g • Evolution to statspack, requests for performance reporting improvements. • “Always on” approach to performance metrics with requirement of non- locking collection process. • Requires Management Diagnostic Pack License from Oracle.
  • 9. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | AWR and ASH Architecture DBA_HIST Views V$ Views Along with AWR Data Memory Buffers write one way, users read the opposite direction! and MMON
  • 10. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Why Do We Combine Diagnostic and Tuning Packs? Tuning Pack includes the Following: • SQL Monitor • SQL Access Advisor • SQL Tuning Advisor These products source their data from AWR….
  • 11. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Other Important Reports to know: $ORACLE_HOME/rdbms/admin/awrrpt.sql; $ORACLE_HOME/rdbms/admin/ashrpt.sql; $ORACLE_HOME/rdbms/admin/awrsqlrpt.sql; awrinfo.sql General AWR Info –Very important for AWR Warehouse! awrddrpt.sql Comparison report between snapshots awrgrpt.sql RAC Aware AWR Report.
  • 12. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | What NOT to DO to the AWR • Underscore parameter changes to spfile that change the default settings for ASH samples, intervals, etc. – DON’T DO IT. Step away….walk away from the keyboard. NOW.
  • 13. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Program Agenda with Highlight Revisit to AWR Top Changes Automatic Workload Repository Active Session History Rest of the Cool Stuff 1 2 3 4 5
  • 14. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | A lot of additions for In-Memory! • Manageability support for In-Memory Column Store • The new Oracle Database In-Memory Column Store (IM column store) feature accelerates database performance of analytics, data warehousing, and online transaction processing (OLTP) applications. • SQL Monitor report, ASH report, and AWR report now show statistics for various in-memory operations.
  • 15. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Configuring is Now a Breeze
  • 16. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Managing Even Easier with In-Memory Central
  • 17. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | New to ASH Analytics Average Active Sessions chart • Click on CPU wait class to see its breakdown by CPU usage for various in- memory operations • View various CPU used for operations other than in-memory operations.
  • 18. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Why Are These Changes Important? In-memory Column store data is very quick to query, but just like other features, if advanced sorting and “massaging” of the data is required, complex performance issues can arise. AWR and Enterprise Manager offers a window into these when challenges occur.
  • 19. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Program Agenda with Highlight Revisit to AWR Top Changes Automatic Workload Repository Active Session History The Rest of the Cool Stuff 1 2 3 4 5
  • 20. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Report Changes Top ADDM Findings as Part of the AWR Report
  • 21. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Foreground Events Displays Top TEN Foreground Events CPU Should be top…to a point…
  • 22. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Top Elapsed Time is Still King Tune for time or you’re wasting time…
  • 23. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Changes in AWR Report for In-Memory In-Memory Segments Statistics • Shows in-memory segment consumption based on various attributes, such as, scans, DB block changes, populate CUs, and repopulate CUs. • Time Model Statistics section shows statistics related to in-memory CPU usage and Instance Activity Statistics section shows statistics related to in-memory activities.
  • 24. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Wait Class by Total Wait Time
  • 25. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | The IO Profile For OLAP and DSS Systems, Great Section in Report
  • 26. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Other New Sections • Goldengate • Xstreams • Resource Stats • Advanced Queuing Data
  • 27. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Example of Why AWR is Still the Gold Standard • EM Health Review in Preparation to Upgrade to EM13c • EM Diagnostics is Run on Repository, OMS and Agents. • Author of Diagnostics starts from OMS tier, unsure of what is impact Where do I start in the Diagnostics data as an Optimization DB Specialist?
  • 28. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | AWR Data in Part of EM Diagnostics, (OMSVFY) There are no mviews in the OMR! Never heard of you!
  • 29. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Physical Reads You both are an unknown!
  • 30. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | The Folly Created Materialized View on top of Metric Tables Used by Enterprise Mgr Mview created pressure on roll up processing that aggregate the data from source tables. To eliminate the overhead, the rollup jobs were shut off Mview AND EM console slow to unusable state as raw metric tables become huge. Creates own schema objects Loads more into own objects
  • 31. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Time Requirements Without Using AWR Data for Healthcheck to Diagnose Performance Issues With Using AWR Data for Healthcheck to Diagnose Performance Issues 8 Months and No Answer 12 Hours and Resolution
  • 32. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Program Agenda with Highlight Revisit to AWR Top Changes Automatic Workload Repository Active Session History The Rest of the Cool Stuff 1 2 3 4 5
  • 33. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | The Best of ASH 1. Active Session History work off ASH Time with ASH samples and not exclusive to AWR snapshots. 2. Small Windows of time to isolate database challenges. 3. Shows the “Forrest for the Trees”. Great for Complex Issues. 4. Includes Blocking, DOP, Procedural calls and session information.
  • 34. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | ASH Report Changes • ASH report header table shows the size of in-memory pool under In Memory Area column. • Top Events, Top SQL, and Activity Over Time sections show CPU consumption by various in-memory operations.
  • 35. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | P Value Top Events Table Presented
  • 36. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Saves You From Having to do This: The values represent: P1—The absolute file number for the data file involved in the wait. P2—The block number within the data file referenced in P1 that is being waited upon. P3—The reason code describing why the wait is occurring. select p1 "File #“, p2 "Block #", p3 "Reason Code“ from v$session_wait where event = 'xxx';
  • 37. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Know the Module, Know the Action Shows Percentage of Activity for Action
  • 38. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Top SQL and PL/SQL Procedures
  • 39. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Blocking Sessions Displayed Clearly
  • 40. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | How Did it Change Over The Time Elapse?
  • 41. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | ASH Analtyics, the New Top Activity
  • 42. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Details of SQL and Sessions…Plus More Capability to update each column to demonstrate different data.
  • 43. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | The Chameleon View Data by Wait Class and Blocking Sessions
  • 44. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Using ASH Analtyics with Search SQL
  • 45. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Searching SQL with ASH Analytics • Copy SQL_ID from ASH Analtyics • Go to Search SQL
  • 46. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Change Defaults Include AWR, (ALL) and AWR Baselines. Paste in the SQL_ID before clicking on “RUN”
  • 47. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Remember the Tabs Click on SQL_ID to proceed to Details
  • 48. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Why ASH shouldn’t be used for Auditing Thanks to Graham, Uri and JB for this wonderful graphic!
  • 49. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Why Time is Important Database Time • Total time spent by sessions in the database server actively working, (CPU) or actively waiting, (aka non-idle.) Active Sessions • The number of active sessions, (including waiting) in the database server at a specific time is the rate of change of database time during that period, (aka workload.)
  • 50. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Understanding ASH Time DBTime is calculated as an approximate made up by multiplying sampling interval by the total count of the samples. Keeping in mind that each sample represents 1 second of DBTime….. Then ASH Math results in: COUNT(*) = <DBTime> GROUP BY <Wait Event>
  • 51. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | ASH Mining Querying ASH, (V$ or GV$ACTIVE_SESSION_HISTORY) Data DIRECTLY to Answer a Question…. • What are the top ten SQL ID’s in the last ten minutes?
  • 52. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | How Often Were SQL ID’s on CPU vs. Waiting on CPU?
  • 53. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Monitoring Database Activity, New School SQL Monitor: Is it done yet? Did it use parallel? What important data do we know?
  • 54. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Change My View, Change My Outlook By updating the “Top 100 by” options, the data returned changes-
  • 55. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Details Top Info • If it’s Exadata, It will show offload percentage. • If it’s In-memory, it will include In-memory information.
  • 56. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | What Kind of Resources in Layman Terms? Very little and I can prove it….
  • 57. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | SQL Monitor and Adaptive Plans The Execution plan shows The Plan Statistics tab contains a drop down list to show current plan, final plan, and full plan. It also contains Plan Note button, which when clicked, shows the notes that are generated in the explain plan for the SQL statement.
  • 58. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Monitoring Use SQL Monitor. Execute on DBMS_SQL_MONITOR.REPORT_SQL_MONITOR View on V$SQL_MONITOR and V$SQL_PLAN_MONITOR
  • 59. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Adaptive Plans in SQL Monitor
  • 60. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Program Agenda with Highlight Revisit to AWR Top Changes Automatic Workload Repository Active Session History The Rest of the Cool Stuff 1 2 3 4 5
  • 61. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | ASH Report Running Slow ASH Report taking over 8 hrs to complete! Sticking while pulling plan information on top SQL. Pulled Execution plan- joins to X$ tables to GV$Active_Session__History Merge Join Cartesians and million row hash table that wasn’t possible for amount of data in ash buffer. Collected fixed stats, (X$ tables) to correct.
  • 62. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Enterprise Manager Slowness Shut off SQL Baselines, (EM is NEVER GOING TO USE THEM!! SQL> ALTER SYSTEM SET optimizer_capture_sql_plan_baselines=false SCOPE=both; SQL> ALTER SYSTEM SET optimizer_use_sql_plan_baselines=false SCOPE=both; Tune the Job Pool, 1st get recommendation $ repvfy verify jobs -test 6007 -details Then update to recommended value: $ emctl set property -name oracle.sysman.core.conn.maxConnForJobWorkers -value <recommended> -module emoms
  • 63. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Tips to Tuning the Enterprise Manager- Java Heap is used heavily with the JVMD built into EM13c. Update from the default to 8Gb is highly recommended: $ emctl set property -name JAVA_EM_MEM_ARGS -value "-Xms256m –Xmx8192m -XX:MaxPermSize=768M - XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:CompileThreshold=8000 -XX:PermSize=128m"
  • 64. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | The AWR Warehouse • Central warehouse configured for long term AWR data retention • Historical and ongoing AWR snapshots collected from databases enabled for AWR warehouse • ETL jobs moves snapshots from source databases into AWR warehouse • Retention period configurable for weeks, months, years or forever (default)
  • 65. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | AWR ETL Jobs DBMS Job on Source Database to directory Job in EM Job Service that pulls file from Source Target and then pushes to AWR Warehouse Target Directory Final DBMS Job Inserts data into AWR Warehouse All data identified by OLD/NEW DBID and with the EM_ID, (CAW_DBID_MAPPING in AWR WAREHOUSE) Source Target Enterprise Manager AWR Warehouse
  • 66. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | AWR Warehouse Interface • Warehouse dashboard tracking ETL jobs • All AWR features available on long term AWR data • Performance page • AWR report • ASH analytics • Compare Period ADDM • Compare Period Report • Integrated seamlessly into EM UI • Zero runtime overhead on source Production databases
  • 67. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | New More Efficient Job Interface
  • 68. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | ADDM Comparison in AWR Warehouse Yes, you can compare one snapshot against another snapshot in DIFFERENT database! 
  • 69. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | CAW_DBID_MAPPING Table and AWR Mining Most important table for anyone querying the AWR Warehouse!
  • 70. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | How Current AWR Mining Queries Change from dba_hist_sys_time_model stm, dba_hist_snapshot s, gv$parameter p, dbsnmp.caw_dbid_mapping m where stm.stat_name in ('DB CPU','background cpu time') and LOWER(m.target_name)= '&dbname' and s.dbid= m.new_dbid and s.snap_id = stm.snap_id and s.dbid = stm.dbid and s.instance_number = stm.instance_number and p.name = 'cpu_count' and p.inst_id = s.instance_number)
  • 71. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | CPU Usage Issues “Nothing’s changed in months…”
  • 72. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Answer Specific IT Questions
  • 73. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Questions?
  • 74. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Connect with me via Social Media: