SlideShare a Scribd company logo
1 of 90
Download to read offline
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Database 12c New AWR, ASH and ADDM
Features Using EM12c and Beyond
Oracle Confidential 3
Kellyn Pot’Vin-Gorman,
Consulting Member of Technical Team, Strategic Customer
Program
September, 2015
Copyright © 2014 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 © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Stay on the Path…
• Optimization- Tune for Time or You’re Wasting Time.
• Know your goal(s)
• Set a stopping point, avoid OTD, (Obsessive Tuning Disorder)
• Do NOT assume. Always do the research and have data behind findings.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Brief History
• 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 © 2014 Oracle and/or its affiliates. All rights reserved. |
The Location in EM12c For Some of Today’s Presentation…
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Automatic Workload Repository, (AWR) Reports
Always on with default intervals of 1hr snapshots and 8 days retention.
Should have at least 60 days of retained data.
Desire more? Have an AWR Warehouse.
Interval increase? Use this during workload testing, otherwise, take a
manual snapshot:
EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Buffer writes one direction,
we read the other!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Reports Are Best Used For..
• To inspect a database level issues, for both a small window of time to
extended window.
• Extensive information in report, knowing HOW to parse through the report
to achieve goal is important.
• Via EM12c, the report is offered in HTML format and will be environment
aware, (single instance, RAC, Exadata.)
• Different reports available from the command line when running from the
$ORACLE_HOME/rdbms/admin directory and can be generated in HTML or
TXT format.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Wasting Time…. 
Rarely is there value in this section.
As long is everything contains high percentages, move on.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR- Top 10 Foreground
•CPU is expected and should be the majority of time.
•CPU processing can be extensive though, (still needs to be investigated)
•Anything under 10% commonly is disregarded.
•Understand what each wait event definition is
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Top SQL
Focus on Elapsed Time, but…
Displays Top SQL by:
CPU
IO
Gets
Reads, etc…
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Full SQL Statements
Linked from Top SQL Lists in HTML report via SQL_ID links.
Quick reference when needed.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SGA “Thrashing”
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why PGA is Important
What is an optimal vs. 1 or (M)ulti-pass executions?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why Can’t I Achieve 100%??
You shall not pass! (optimal, so 90%, that is… )
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Percentages and Amounts of Reads are Important
Top two objects correspond to SQL statements in the top IO and most likely top SQL
by elapsed time.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
What is a Direct Physical Read?
•Inefficient SQL and objects that have high quantity of row changes involved.
•Adds significant pressure in RAC environment, too!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Un-optimized vs. Optimized?
Percentages are low per object, (under 10%, which is a good sign for any database!)
This is an exadata, so it means they are either not in the buffer cache or the smart flash cache, which means
un-optimized”.
This is “somewhat” expected and don’t panic unless you see high percentages.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Initial Transaction Locks
10% rule applies here, too!
ALTER TABLE <name> initrans <xx>;
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
RAC Interconnect Exchange
•Data from V$SYSMETRIC_HISTORY
•High Exchange rate can signal and issue.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
RAC Cache Interconnect Stats
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Transfer Rate Between RAC Nodes
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ASH Reports
• Excellent for identifying specific issues in database.
• Identifies not just the top SQL, but code.
• Shows top wait events by sample time.
• Don’t confuse samples with AWR snapshots.
• Should not be used to track # of executions.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Buffer writes one direction,
We read the other!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Running ASH Report from Cloud Control
• ASH is by time, not snapshot.
• Set start date and time.
• End date and time
• Generate report
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
HTML Format ASH
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Main ASH Info
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Top SQL, Top Sessions
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Top SQL Details
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Top Parallel, Top DB Files
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ASH Report- Use Case
@$ORACLE_HOME/rdbms/admin/ashrpt.sql;
 Report Format: Text
 Performance Issue during day, need to know what’s going on!
 Run ASH Report from the command line with SQL*Plus:
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
“Interesting Part”
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Finale!
Select * from table(dbms_xplan.display_awr(‘43mp3mjufgnkg’));
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR and ASH from the Command Line Interface
All DBAs should know how to do this!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Running Reports, Command Line
$ORACLE_HOME/rdbms/admin/awrrpt.sql;
$ORACLE_HOME/rdbms/admin/ashrpt.sql;
$ORACLE_HOME/rdbms/admin/awrsqrpt.sql;
Less Known AWR Reports:
awrinfo.sql General AWR Info
awrddrpt.sql Comparison report between snapshots
awrblmig.sql Migrates pre-11g baseline data into 11g Baseline tables.
awrgrpt.sql RAC Aware AWR Report.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Info Report
Snapshot Interval Information
Basic Info on Instances and Nodes
No User or Application Schema info.
Space Usage by SYSAUX
WRH$ and Non- AWR Objects, ordered by size
Snapshot info and if any errors.
Advisor Tasks
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR General Information Report
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ASH Info Report
@$ORACLE_HOME/rdbms/admin/ashrpt.sql;
 Report Format: Text or HTML
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL_ID Specific AWR Report
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Querying ASH Data Directly
• More defined reporting
• No need to pull full report
• Detail on waits that are of interest
• Join to non-AWR objects
• Examples and Ideas…
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
V$ACTIVE_SESSION_HISTORY
• SAMPLE_ID- This is a unique identifier within an ASH sample.
• SAMPLE_TIME- A unit of time used by Active Session History, (not to be confused with DB_TIME)
• USER_ID- Identifier for a user that’s executing the session.
• SESSION_ID- Same as the SID or Session ID and can be used to join to SID in other views/tables.
• SESSION_STATE- What was the state of the session when ASH recorded the sample.
• ON CPU/WAITING- The two session states in Active Session History. ON CPU is active, vs. Waiting, which
is self-explanatory.
• EVENT- Type of event that the session is currently active or waiting on.
• TIME_WAITED- How long the session has been waiting if waiting.
• WAIT_TIME- Confusing- but this is populated by any wait time if the session is currently active and for
the previous waits.
• SQL_ID- The unique identifier for the SQL statement being executed.
• SQL_CHILD_NUMBER-The cursor child number.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Session Averages
Select ROUND(RATIO_TO_REPORT(SUM(1)) OVER () * 100 ,2) PERCENTAGE,ash.session_type SESS_TYPE,
session_state STATUS, decode(nvl(sql_id,'-1'),'-1','nonsql','sql') SQL_TYPE,
count(distinct to_char(session_id)|| to_char(session_serial#)) SESS_CNT
from v$active_session_history ash
where
sample_time > sysdate - 30/(24*60) and (
( ash.session_state = 'ON CPU' )
or
( ash.session_type != 'BACKGROUND' ))
group by
ash.session_type,
ash.session_state, decode(nvl(sql_id,'-1'),'-1','nonsql','sql')
order by count(*)
/
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Session Avg. Output
• Note the % of Background processes
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Inspecting What
select * from (select ash.SQL_ID , ash.SQL_PLAN_HASH_VALUE Plan_hash, aud.name type,
sum(decode(ash.session_state,'ON CPU',1,0)) "CPU",
sum(decode(ash.session_state,'WAITING',1,0)) "WAITING",
sum(decode(ash.session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) "IO WAIT" ,
sum(decode(ash.session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) "IO" ,
sum(decode(ash.session_state,'WAITING', decode(wait_class, 'Concurrency',1,0))) "CONCURRENCY" ,
sum(decode(ash.session_state,'WAITING', decode(wait_class, 'Application',1,0))) "Application" ,
sum(decode(ash.session_state,'ON CPU',1,1)) "TOTAL"
from v$active_session_history ash, audit_actions aud where SQL_ID is not NULL
and ash.sql_opcode=aud.action and ash.sample_time > sysdate - &minutes /( 60*24)
group by sql_id, SQL_PLAN_HASH_VALUE , aud.name
order by sum(decode(session_state,'ON CPU',1,1)) desc
) where rownum < 5;
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
10 Min. View of Waits by SQL_ID
• Choose Time in Minutes To Review, (10 in our example)
• SQL_ID and Plan Hash Value Shown
• Waits for CPU, Wait, IO Wait and others.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Quantity of Events Occurred Over Small Amounts of Time
Col event for a50
select event, count(1)
from v$active_session_history
where sample_time between
to_date('21-FEB-14 01.43.00 PM','dd-MON-yy hh:mi:ss PM')
and
to_date('21-FEB-15 01.53.00 PM','dd-MON-yy hh:mi:ss PM')
group by event
order by event;
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Results, Where to Focus?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Transaction Wait Detail
select to_char(sample_time,'HH:MI') st, substr(event,0,20) event,
ash.session_id sid, mod(ash.p1,16) lm, ash.p2,
ash.p3, nvl(o.object_name,ash.current_obj#) objn,
substr(o.object_type,0,10) otype, CURRENT_FILE# fn,
CURRENT_BLOCK# blockn, ash.SQL_ID, BLOCKING_SESSION bsid
from v$active_session_history ash, all_objects o
where event like 'enq: TX%'
and o.object_id (+)= ash.CURRENT_OBJ#
and sample_time > sysdate - 10/(60*24)
order by sample_time;
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Transaction Lock Output
What TX row locks are occurring!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Knowing What’s in the ASH Buffer
Deters from making assumptions on what data is being
queried.
Know your samples!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Wait Events Across Nodes
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Query top 10
SQL_ID’s in the last
10 minutes?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL_ID and CPU Usage
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
IO Waits by Object from ASH
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Text with ASH
SQL for most recent five minutes of sample data from ASH
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Results
SQL_ID, SQL Text, Sample Time that Process was captured
in.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Graphing From the CLI, via Kyle Hailey-
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Formatting and Setup
accept hours prompt "hours (default 12) : " default 12
select &hours f_hours from dual;
select 3600 f_secs from dual;
select &v_secs f_samples from dual;
select 30 f_graph from dual;
select to_char(to_date(tday||' '||tmod*&v_secs,'YYMMDD SSSSS'),'DD-MON HH24:MI:SS') tm,
samples npts,total/&samples aas, substr(substr(substr(rpad('+',round((cpu*&v_bars)/&samples),'+') ||
rpad('-',round((waits*&v_bars)/&samples),'-') ||
rpad(' ',p.value * &v_bars,' '),0,(p.value * &v_bars)) ||
p.value || substr(rpad('+',round((cpu*&v_bars)/&samples),'+') ||
rpad('-',round((waits*&v_bars)/&samples),'-') ||
rpad(' ',p.value * &v_bars,' '),(p.value * &v_bars),10) ,0,30)
,0,&v_graph)graph,total,cpu, waits from (
URL to Kyle Hailey’s Original, Fully Formatted Query
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
select to_char(sample_time,'YYMMDD')tday
, trunc(to_char(sample_time,'SSSSS')/&v_secs) tmod , sum(decode(session_state,'ON
CPU',1,decode(session_type,'BACKGROUND',0,1))) total
, (max(sample_id) - min(sample_id) + 1 ) samples , sum(decode(session_state,'ON CPU' ,1,0)) cpu
, sum(decode(session_type,'BACKGROUND',0,decode(session_state,'WAITING',1,0))) waits
from v$active_session_history where sample_time > sysdate - &v_hours/24
group by trunc(to_char(sample_time,'SSSSS')/&v_secs), to_char(sample_time,'YYMMDD')
union all
select to_char(sample_time,'YYMMDD')tday, trunc(to_char(sample_time,'SSSSS')/&v_secs) tmod
, sum(decode(session_state,'ON CPU',10,decode(session_type,'BACKGROUND',0,10))) total
, (max(sample_id) - min(sample_id) + 1 ) samples, sum(decode(session_state,'ON CPU' ,10,0)) cpu
, sum(decode(session_type,'BACKGROUND',0,decode(session_state,'WAITING',10,0))) waits
from dba_hist_active_sess_history where sample_time > sysdate - &v_hours/24 and sample_time < (select min(sample_time) from
v$active_session_history)
group by trunc(to_char(sample_time,'SSSSS')/&v_secs), to_char(sample_time,'YYMMDD')) ash, v$parameter p
where p.name='cpu_count'
order by to_date(tday||' '||tmod*&v_secs,'YYMMDD SSSSS');
**Thanks to Kyle Hailey for this great graph via the CLI
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Pivot the Wait Events
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Digging into History
• DBA_HIST_ACTIVE_SESS_HISTORY
 SNAP_ID
 SAMPLE_ID
 SAMPLE_TIME
 SESSION_ID
 USER_ID
 SQL_ID
 WAIT_CLASS
 SESSION_STATE
 PGA_ALLOCATED
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Process Information
SELECT * FROM (
SELECT /*+ PARALLEL */
count(*) AS count,
user_id, program, module, sql_id
FROM SYS.DBA_HIST_ACTIVE_SESS_HISTORY
WHERE sample_time > TO_DATE('19-FEB-2014 03.00.00 PM','dd-MON-yy hh:mi:ss PM')
AND sample_time < TO_DATE('19-FEB-2014 08.00.00 PM','dd-MON-yy hh:mi:ss PM')
AND program LIKE 'oracle@%'
GROUP BY user_id, program, module, machine, sql_id
ORDER BY count(*) desc
)
WHERE rownum <= 20
/
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Results of Process History
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Tyler Muth ASH Mining Query
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
ASH Mining Output
Additional Options:
• Physical Read Averages
• Physical Writes, (Max/Averages)
• Redo Info
• Login Info
• Hard Parsing, etc.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Best Practice When Querying ASH Data
Keep it Simple and don’t reinvent the wheel.
Again- samples are an alias for time, not for counts.
Understand what is valuable and compare to packaged reports.
Be aware on RAC of node specific data.
Take care when querying Obj#, File# and Block#, (still issues in different
versions…)
Check the time that is available in buffer, don’t assume!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
2-3PM, 12th Vs. 13th
Familiar interface with visual wait event comparisons.
Average # of sessions during each period are displayed.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
IO Bound Dashboard
 Base vs. comparison period
 Temp reads/writes specified
 Single block read latency
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Monitor, EM12c Style
• One More way to identify performance issues.
• Monitoring view ease for those less familiar with database performance.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Monitor Dashboard
Status of Statement
Wait Events
Degree of Parallelism
SQL_ID
SQL Text
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Exadata and Offloading
• Drill down to specific statement within SQL Monitor will display offload
efficiency per statement.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Full Detail of SQL Execution
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
View Report
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Monitor Report via the Command Line Interface
SET LONG 1000000
SET LONGCHUNKSIZE 1000000
SET LINESIZE 1000
SET PAGESIZE 0
SET TRIM ON
SET TRIMSPOOL ON
SET ECHO OFF
SET FEEDBACK OFF
SELECT DBMS_SQLTUNE.report_sql_monitor(
sql_id => '5vh6y3b7tnv8r',
type => 'TEXT',
report_level => 'ALL') AS report
FROM dual;
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Text Output of SQL Monitor
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
One of the Best & Least Used Features in Enterprise
Manager: Search SQL
Problem Query
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
We Have the SQL_ID, What Next?
4v2tsp8dz0nhn is our SQL_ID
Go to the EM Console, (Example is EM12c)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Search SQL Interface
Choose AWR Snapshots, (change Time Period), AWR Baselines and put
SQL_ID
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Click on Search
SQL_ID link for SQL Details
Split up by tabs for Cursor, AWR, Baselines and SQL Tuning Sets
Plan Hash Value
Elapsed Time
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Snapshot Data
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Identify
Using the information provided by Search SQL, locate the correct plan hash
value to create a profile from.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Details
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Report or Run ADDM Report
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Baseline Impact?
Third Tab contains Baseline Information and links to verify if implemented.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR/ASH Links/Blogs
• Tyler Muth: http://tylermuth.wordpress.com/
• Kyle Hailey, John Beresniewicz, Graham Wood: http://ashmasters.com/
• Mine- “For the Love of ASH and AWR” http://dbakevlar.com/2011/02/for-
the-love-of-awr-and-ash/
• Using AWR Reports: http://dbakevlar.com/2015/01/working-with-awr-
reports-from-em12c/
• How to Use an ASH Report: http://dbakevlar.com/2015/02/how-to-use-an-
ash-report-and-why/
• SQL ID Specific Performance Information:
http://dbakevlar.com/2015/05/sql-id-specific-performance-information/
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Connect with me-
AWR and ASH in an EM12c World

More Related Content

What's hot

Oracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewOracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewKris Rice
 
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...Sandesh Rao
 
IOUG at Coors Field ASH and AWR in EM12c!
IOUG at Coors Field ASH and AWR in EM12c!IOUG at Coors Field ASH and AWR in EM12c!
IOUG at Coors Field ASH and AWR in EM12c!Kellyn Pot'Vin-Gorman
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data ServicesChris Muir
 
What's new in oracle trace file analyzer 18.2.0
What's new in oracle trace file analyzer 18.2.0What's new in oracle trace file analyzer 18.2.0
What's new in oracle trace file analyzer 18.2.0Sandesh Rao
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability VisionErmando
 
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Sandesh Rao
 
Whats new in oracle trace file analyzer 18.3.0
Whats new in oracle trace file analyzer 18.3.0Whats new in oracle trace file analyzer 18.3.0
Whats new in oracle trace file analyzer 18.3.0Gareth Chapman
 
Power of the AWR Warehouse- HotSos Symposium 2015
Power of the AWR Warehouse-  HotSos Symposium 2015Power of the AWR Warehouse-  HotSos Symposium 2015
Power of the AWR Warehouse- HotSos Symposium 2015Kellyn Pot'Vin-Gorman
 
AIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should know
AIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should knowAIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should know
AIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should knowSandesh Rao
 
Pimping SQL Developer and Data Modeler
Pimping SQL Developer and Data ModelerPimping SQL Developer and Data Modeler
Pimping SQL Developer and Data ModelerKris Rice
 
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 warehouse2gaougorg
 
OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]
OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]
OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]vasuballa
 
Oracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web ServicesOracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web ServicesJeff Smith
 
Oracle Trace File Analyzer Overview
Oracle Trace File Analyzer OverviewOracle Trace File Analyzer Overview
Oracle Trace File Analyzer OverviewGareth Chapman
 
Ground Breakers Romania: Oracle Autonomous Database
Ground Breakers Romania: Oracle Autonomous DatabaseGround Breakers Romania: Oracle Autonomous Database
Ground Breakers Romania: Oracle Autonomous DatabaseMaria Colgan
 
Exachk Customer Presentation
Exachk Customer PresentationExachk Customer Presentation
Exachk Customer PresentationSandesh Rao
 
OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...
OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...
OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...vasuballa
 
AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...
AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...
AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...Sandesh Rao
 

What's hot (20)

Oracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewOracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ Overview
 
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
AIOUG - Groundbreakers - Jul 2019 - 19 Troubleshooting Tips and Tricks for Da...
 
IOUG at Coors Field ASH and AWR in EM12c!
IOUG at Coors Field ASH and AWR in EM12c!IOUG at Coors Field ASH and AWR in EM12c!
IOUG at Coors Field ASH and AWR in EM12c!
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data Services
 
What's new in oracle trace file analyzer 18.2.0
What's new in oracle trace file analyzer 18.2.0What's new in oracle trace file analyzer 18.2.0
What's new in oracle trace file analyzer 18.2.0
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision
 
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
Oracle Autonomous Health Service- For Protecting Your On-Premise Databases- F...
 
Whats new in oracle trace file analyzer 18.3.0
Whats new in oracle trace file analyzer 18.3.0Whats new in oracle trace file analyzer 18.3.0
Whats new in oracle trace file analyzer 18.3.0
 
Power of the AWR Warehouse- HotSos Symposium 2015
Power of the AWR Warehouse-  HotSos Symposium 2015Power of the AWR Warehouse-  HotSos Symposium 2015
Power of the AWR Warehouse- HotSos Symposium 2015
 
AIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should know
AIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should knowAIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should know
AIOUG : ODEVCYathra 2018 - Oracle Autonomous Database What Every DBA should know
 
Pimping SQL Developer and Data Modeler
Pimping SQL Developer and Data ModelerPimping SQL Developer and Data Modeler
Pimping SQL Developer and Data Modeler
 
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
 
OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]
OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]
OOW16 - Testing Oracle E-Business Suite Best Practices [CON6713]
 
Em13c features- HotSos 2016
Em13c features- HotSos 2016Em13c features- HotSos 2016
Em13c features- HotSos 2016
 
Oracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web ServicesOracle REST Data Services: Options for your Web Services
Oracle REST Data Services: Options for your Web Services
 
Oracle Trace File Analyzer Overview
Oracle Trace File Analyzer OverviewOracle Trace File Analyzer Overview
Oracle Trace File Analyzer Overview
 
Ground Breakers Romania: Oracle Autonomous Database
Ground Breakers Romania: Oracle Autonomous DatabaseGround Breakers Romania: Oracle Autonomous Database
Ground Breakers Romania: Oracle Autonomous Database
 
Exachk Customer Presentation
Exachk Customer PresentationExachk Customer Presentation
Exachk Customer Presentation
 
OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...
OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...
OOW16 - Oracle Enterprise Manager 13c Cloud Control for Managing Oracle E-Bus...
 
AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...
AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...
AUSOUG - Introducing New AI Ops Innovations in Oracle 19c Autonomous Health F...
 

Similar to AWR and ASH in an EM12c World

Database as a Service, Collaborate 2016
Database as a Service, Collaborate 2016Database as a Service, Collaborate 2016
Database as a Service, Collaborate 2016Kellyn Pot'Vin-Gorman
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschemaIvan Ma
 
Oracle SQL Developer for the DBA
Oracle SQL Developer for the DBAOracle SQL Developer for the DBA
Oracle SQL Developer for the DBAJeff Smith
 
Some Oracle AWR observations
Some Oracle AWR observationsSome Oracle AWR observations
Some Oracle AWR observationsConnor McDonald
 
OUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLOUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLGeorgi Kodinov
 
Oracle Open World Exadata Monitoring and Management with EM12c
Oracle Open World Exadata Monitoring and Management with EM12cOracle Open World Exadata Monitoring and Management with EM12c
Oracle Open World Exadata Monitoring and Management with EM12cKellyn Pot'Vin-Gorman
 
AWR and ASH Advanced Usage with DB12c
AWR and ASH Advanced Usage with DB12cAWR and ASH Advanced Usage with DB12c
AWR and ASH Advanced Usage with DB12cKellyn Pot'Vin-Gorman
 
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should BeOracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should BeJeff Smith
 
REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)Jeff Smith
 
Oracle SQL Developer for SQL Server?
Oracle SQL Developer for SQL Server?Oracle SQL Developer for SQL Server?
Oracle SQL Developer for SQL Server?Jeff Smith
 
Introduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed DatabasesIntroduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed DatabasesShankar Iyer
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperJeff Smith
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementMark Matthews
 
Oracle SQL Developer Reports
Oracle SQL Developer ReportsOracle SQL Developer Reports
Oracle SQL Developer ReportsJeff Smith
 
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...DataWorks Summit
 
Barun_Practical_and_Efficient_SQL_Performance_Tuning
Barun_Practical_and_Efficient_SQL_Performance_TuningBarun_Practical_and_Efficient_SQL_Performance_Tuning
Barun_Practical_and_Efficient_SQL_Performance_TuningVlado Barun
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018Jeff Smith
 

Similar to AWR and ASH in an EM12c World (20)

AWR and ASH Deep Dive
AWR and ASH Deep DiveAWR and ASH Deep Dive
AWR and ASH Deep Dive
 
Developer day v2
Developer day v2Developer day v2
Developer day v2
 
ODTUG Webinar AWR Warehouse
ODTUG Webinar AWR WarehouseODTUG Webinar AWR Warehouse
ODTUG Webinar AWR Warehouse
 
Database as a Service, Collaborate 2016
Database as a Service, Collaborate 2016Database as a Service, Collaborate 2016
Database as a Service, Collaborate 2016
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
 
Oracle SQL Developer for the DBA
Oracle SQL Developer for the DBAOracle SQL Developer for the DBA
Oracle SQL Developer for the DBA
 
Some Oracle AWR observations
Some Oracle AWR observationsSome Oracle AWR observations
Some Oracle AWR observations
 
OUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQLOUGLS 2016: How profiling works in MySQL
OUGLS 2016: How profiling works in MySQL
 
Oracle Open World Exadata Monitoring and Management with EM12c
Oracle Open World Exadata Monitoring and Management with EM12cOracle Open World Exadata Monitoring and Management with EM12c
Oracle Open World Exadata Monitoring and Management with EM12c
 
AWR and ASH Advanced Usage with DB12c
AWR and ASH Advanced Usage with DB12cAWR and ASH Advanced Usage with DB12c
AWR and ASH Advanced Usage with DB12c
 
Oracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should BeOracle SQL Developer: 3 Features You're Not Using But Should Be
Oracle SQL Developer: 3 Features You're Not Using But Should Be
 
REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)REST Enabling your Oracle Database (2018 Update)
REST Enabling your Oracle Database (2018 Update)
 
Oracle SQL Developer for SQL Server?
Oracle SQL Developer for SQL Server?Oracle SQL Developer for SQL Server?
Oracle SQL Developer for SQL Server?
 
Introduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed DatabasesIntroduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed Databases
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance Improvement
 
Oracle SQL Developer Reports
Oracle SQL Developer ReportsOracle SQL Developer Reports
Oracle SQL Developer Reports
 
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
 
Barun_Practical_and_Efficient_SQL_Performance_Tuning
Barun_Practical_and_Efficient_SQL_Performance_TuningBarun_Practical_and_Efficient_SQL_Performance_Tuning
Barun_Practical_and_Efficient_SQL_Performance_Tuning
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 

More from Kellyn Pot'Vin-Gorman

Redgate_summit_atl_kgorman_intersection.pptx
Redgate_summit_atl_kgorman_intersection.pptxRedgate_summit_atl_kgorman_intersection.pptx
Redgate_summit_atl_kgorman_intersection.pptxKellyn Pot'Vin-Gorman
 
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptxSQLSatOregon_kgorman_keynote_NIAIMLEC.pptx
SQLSatOregon_kgorman_keynote_NIAIMLEC.pptxKellyn Pot'Vin-Gorman
 
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"Kellyn Pot'Vin-Gorman
 
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 BIKellyn Pot'Vin-Gorman
 
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 ProfessionalKellyn Pot'Vin-Gorman
 
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 TricksKellyn Pot'Vin-Gorman
 
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 CloudKellyn Pot'Vin-Gorman
 
ODTUG Leadership Talk- WIT and Sponsorship
ODTUG Leadership Talk-  WIT and SponsorshipODTUG Leadership Talk-  WIT and Sponsorship
ODTUG Leadership Talk- WIT and SponsorshipKellyn Pot'Vin-Gorman
 
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 DataKellyn Pot'Vin-Gorman
 

More from 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"
 
PASS Summit 2020
PASS Summit 2020PASS Summit 2020
PASS Summit 2020
 
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
 

Recently uploaded

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Recently uploaded (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

AWR and ASH in an EM12c World

  • 1.
  • 2.
  • 3. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Database 12c New AWR, ASH and ADDM Features Using EM12c and Beyond Oracle Confidential 3 Kellyn Pot’Vin-Gorman, Consulting Member of Technical Team, Strategic Customer Program September, 2015
  • 4. Copyright © 2014 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 © 2014 Oracle and/or its affiliates. All rights reserved. |
  • 6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Stay on the Path… • Optimization- Tune for Time or You’re Wasting Time. • Know your goal(s) • Set a stopping point, avoid OTD, (Obsessive Tuning Disorder) • Do NOT assume. Always do the research and have data behind findings.
  • 7. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Brief History • 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.
  • 8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | The Location in EM12c For Some of Today’s Presentation…
  • 9. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Automatic Workload Repository, (AWR) Reports Always on with default intervals of 1hr snapshots and 8 days retention. Should have at least 60 days of retained data. Desire more? Have an AWR Warehouse. Interval increase? Use this during workload testing, otherwise, take a manual snapshot: EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;
  • 10. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Buffer writes one direction, we read the other!
  • 11. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR Reports Are Best Used For.. • To inspect a database level issues, for both a small window of time to extended window. • Extensive information in report, knowing HOW to parse through the report to achieve goal is important. • Via EM12c, the report is offered in HTML format and will be environment aware, (single instance, RAC, Exadata.) • Different reports available from the command line when running from the $ORACLE_HOME/rdbms/admin directory and can be generated in HTML or TXT format.
  • 12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Wasting Time….  Rarely is there value in this section. As long is everything contains high percentages, move on.
  • 13. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR- Top 10 Foreground •CPU is expected and should be the majority of time. •CPU processing can be extensive though, (still needs to be investigated) •Anything under 10% commonly is disregarded. •Understand what each wait event definition is
  • 14. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Top SQL Focus on Elapsed Time, but… Displays Top SQL by: CPU IO Gets Reads, etc…
  • 15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Full SQL Statements Linked from Top SQL Lists in HTML report via SQL_ID links. Quick reference when needed.
  • 16. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SGA “Thrashing”
  • 17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Why PGA is Important What is an optimal vs. 1 or (M)ulti-pass executions?
  • 18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Why Can’t I Achieve 100%?? You shall not pass! (optimal, so 90%, that is… )
  • 19. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Percentages and Amounts of Reads are Important Top two objects correspond to SQL statements in the top IO and most likely top SQL by elapsed time.
  • 20. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | What is a Direct Physical Read? •Inefficient SQL and objects that have high quantity of row changes involved. •Adds significant pressure in RAC environment, too!
  • 21. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Un-optimized vs. Optimized? Percentages are low per object, (under 10%, which is a good sign for any database!) This is an exadata, so it means they are either not in the buffer cache or the smart flash cache, which means un-optimized”. This is “somewhat” expected and don’t panic unless you see high percentages.
  • 22. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Initial Transaction Locks 10% rule applies here, too! ALTER TABLE <name> initrans <xx>;
  • 23. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | RAC Interconnect Exchange •Data from V$SYSMETRIC_HISTORY •High Exchange rate can signal and issue.
  • 24. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | RAC Cache Interconnect Stats
  • 25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Transfer Rate Between RAC Nodes
  • 26. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ASH Reports • Excellent for identifying specific issues in database. • Identifies not just the top SQL, but code. • Shows top wait events by sample time. • Don’t confuse samples with AWR snapshots. • Should not be used to track # of executions.
  • 27. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Buffer writes one direction, We read the other!
  • 28. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Running ASH Report from Cloud Control • ASH is by time, not snapshot. • Set start date and time. • End date and time • Generate report
  • 29. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | HTML Format ASH
  • 30. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Main ASH Info
  • 31. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Top SQL, Top Sessions
  • 32. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Top SQL Details
  • 33. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Top Parallel, Top DB Files
  • 34. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ASH Report- Use Case @$ORACLE_HOME/rdbms/admin/ashrpt.sql;  Report Format: Text  Performance Issue during day, need to know what’s going on!  Run ASH Report from the command line with SQL*Plus:
  • 35. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | “Interesting Part”
  • 36. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Finale! Select * from table(dbms_xplan.display_awr(‘43mp3mjufgnkg’));
  • 37. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR and ASH from the Command Line Interface All DBAs should know how to do this!
  • 38. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Running Reports, Command Line $ORACLE_HOME/rdbms/admin/awrrpt.sql; $ORACLE_HOME/rdbms/admin/ashrpt.sql; $ORACLE_HOME/rdbms/admin/awrsqrpt.sql; Less Known AWR Reports: awrinfo.sql General AWR Info awrddrpt.sql Comparison report between snapshots awrblmig.sql Migrates pre-11g baseline data into 11g Baseline tables. awrgrpt.sql RAC Aware AWR Report.
  • 39. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR Info Report Snapshot Interval Information Basic Info on Instances and Nodes No User or Application Schema info. Space Usage by SYSAUX WRH$ and Non- AWR Objects, ordered by size Snapshot info and if any errors. Advisor Tasks
  • 40. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR General Information Report
  • 41. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ASH Info Report @$ORACLE_HOME/rdbms/admin/ashrpt.sql;  Report Format: Text or HTML
  • 42. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL_ID Specific AWR Report
  • 43. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Querying ASH Data Directly • More defined reporting • No need to pull full report • Detail on waits that are of interest • Join to non-AWR objects • Examples and Ideas…
  • 44. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | V$ACTIVE_SESSION_HISTORY • SAMPLE_ID- This is a unique identifier within an ASH sample. • SAMPLE_TIME- A unit of time used by Active Session History, (not to be confused with DB_TIME) • USER_ID- Identifier for a user that’s executing the session. • SESSION_ID- Same as the SID or Session ID and can be used to join to SID in other views/tables. • SESSION_STATE- What was the state of the session when ASH recorded the sample. • ON CPU/WAITING- The two session states in Active Session History. ON CPU is active, vs. Waiting, which is self-explanatory. • EVENT- Type of event that the session is currently active or waiting on. • TIME_WAITED- How long the session has been waiting if waiting. • WAIT_TIME- Confusing- but this is populated by any wait time if the session is currently active and for the previous waits. • SQL_ID- The unique identifier for the SQL statement being executed. • SQL_CHILD_NUMBER-The cursor child number.
  • 45. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Session Averages Select ROUND(RATIO_TO_REPORT(SUM(1)) OVER () * 100 ,2) PERCENTAGE,ash.session_type SESS_TYPE, session_state STATUS, decode(nvl(sql_id,'-1'),'-1','nonsql','sql') SQL_TYPE, count(distinct to_char(session_id)|| to_char(session_serial#)) SESS_CNT from v$active_session_history ash where sample_time > sysdate - 30/(24*60) and ( ( ash.session_state = 'ON CPU' ) or ( ash.session_type != 'BACKGROUND' )) group by ash.session_type, ash.session_state, decode(nvl(sql_id,'-1'),'-1','nonsql','sql') order by count(*) /
  • 46. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Session Avg. Output • Note the % of Background processes
  • 47. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Inspecting What select * from (select ash.SQL_ID , ash.SQL_PLAN_HASH_VALUE Plan_hash, aud.name type, sum(decode(ash.session_state,'ON CPU',1,0)) "CPU", sum(decode(ash.session_state,'WAITING',1,0)) "WAITING", sum(decode(ash.session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) "IO WAIT" , sum(decode(ash.session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) "IO" , sum(decode(ash.session_state,'WAITING', decode(wait_class, 'Concurrency',1,0))) "CONCURRENCY" , sum(decode(ash.session_state,'WAITING', decode(wait_class, 'Application',1,0))) "Application" , sum(decode(ash.session_state,'ON CPU',1,1)) "TOTAL" from v$active_session_history ash, audit_actions aud where SQL_ID is not NULL and ash.sql_opcode=aud.action and ash.sample_time > sysdate - &minutes /( 60*24) group by sql_id, SQL_PLAN_HASH_VALUE , aud.name order by sum(decode(session_state,'ON CPU',1,1)) desc ) where rownum < 5;
  • 48. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 10 Min. View of Waits by SQL_ID • Choose Time in Minutes To Review, (10 in our example) • SQL_ID and Plan Hash Value Shown • Waits for CPU, Wait, IO Wait and others.
  • 49. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Quantity of Events Occurred Over Small Amounts of Time Col event for a50 select event, count(1) from v$active_session_history where sample_time between to_date('21-FEB-14 01.43.00 PM','dd-MON-yy hh:mi:ss PM') and to_date('21-FEB-15 01.53.00 PM','dd-MON-yy hh:mi:ss PM') group by event order by event;
  • 50. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Results, Where to Focus?
  • 51. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Transaction Wait Detail select to_char(sample_time,'HH:MI') st, substr(event,0,20) event, ash.session_id sid, mod(ash.p1,16) lm, ash.p2, ash.p3, nvl(o.object_name,ash.current_obj#) objn, substr(o.object_type,0,10) otype, CURRENT_FILE# fn, CURRENT_BLOCK# blockn, ash.SQL_ID, BLOCKING_SESSION bsid from v$active_session_history ash, all_objects o where event like 'enq: TX%' and o.object_id (+)= ash.CURRENT_OBJ# and sample_time > sysdate - 10/(60*24) order by sample_time;
  • 52. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Transaction Lock Output What TX row locks are occurring!
  • 53. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Knowing What’s in the ASH Buffer Deters from making assumptions on what data is being queried. Know your samples!
  • 54. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Wait Events Across Nodes
  • 55. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Query top 10 SQL_ID’s in the last 10 minutes?
  • 56. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL_ID and CPU Usage
  • 57. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | IO Waits by Object from ASH
  • 58. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Text with ASH SQL for most recent five minutes of sample data from ASH
  • 59. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Results SQL_ID, SQL Text, Sample Time that Process was captured in.
  • 60. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Graphing From the CLI, via Kyle Hailey-
  • 61. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Formatting and Setup accept hours prompt "hours (default 12) : " default 12 select &hours f_hours from dual; select 3600 f_secs from dual; select &v_secs f_samples from dual; select 30 f_graph from dual; select to_char(to_date(tday||' '||tmod*&v_secs,'YYMMDD SSSSS'),'DD-MON HH24:MI:SS') tm, samples npts,total/&samples aas, substr(substr(substr(rpad('+',round((cpu*&v_bars)/&samples),'+') || rpad('-',round((waits*&v_bars)/&samples),'-') || rpad(' ',p.value * &v_bars,' '),0,(p.value * &v_bars)) || p.value || substr(rpad('+',round((cpu*&v_bars)/&samples),'+') || rpad('-',round((waits*&v_bars)/&samples),'-') || rpad(' ',p.value * &v_bars,' '),(p.value * &v_bars),10) ,0,30) ,0,&v_graph)graph,total,cpu, waits from ( URL to Kyle Hailey’s Original, Fully Formatted Query
  • 62. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | select to_char(sample_time,'YYMMDD')tday , trunc(to_char(sample_time,'SSSSS')/&v_secs) tmod , sum(decode(session_state,'ON CPU',1,decode(session_type,'BACKGROUND',0,1))) total , (max(sample_id) - min(sample_id) + 1 ) samples , sum(decode(session_state,'ON CPU' ,1,0)) cpu , sum(decode(session_type,'BACKGROUND',0,decode(session_state,'WAITING',1,0))) waits from v$active_session_history where sample_time > sysdate - &v_hours/24 group by trunc(to_char(sample_time,'SSSSS')/&v_secs), to_char(sample_time,'YYMMDD') union all select to_char(sample_time,'YYMMDD')tday, trunc(to_char(sample_time,'SSSSS')/&v_secs) tmod , sum(decode(session_state,'ON CPU',10,decode(session_type,'BACKGROUND',0,10))) total , (max(sample_id) - min(sample_id) + 1 ) samples, sum(decode(session_state,'ON CPU' ,10,0)) cpu , sum(decode(session_type,'BACKGROUND',0,decode(session_state,'WAITING',10,0))) waits from dba_hist_active_sess_history where sample_time > sysdate - &v_hours/24 and sample_time < (select min(sample_time) from v$active_session_history) group by trunc(to_char(sample_time,'SSSSS')/&v_secs), to_char(sample_time,'YYMMDD')) ash, v$parameter p where p.name='cpu_count' order by to_date(tday||' '||tmod*&v_secs,'YYMMDD SSSSS'); **Thanks to Kyle Hailey for this great graph via the CLI
  • 63. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Pivot the Wait Events
  • 64. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Digging into History • DBA_HIST_ACTIVE_SESS_HISTORY  SNAP_ID  SAMPLE_ID  SAMPLE_TIME  SESSION_ID  USER_ID  SQL_ID  WAIT_CLASS  SESSION_STATE  PGA_ALLOCATED
  • 65. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Process Information SELECT * FROM ( SELECT /*+ PARALLEL */ count(*) AS count, user_id, program, module, sql_id FROM SYS.DBA_HIST_ACTIVE_SESS_HISTORY WHERE sample_time > TO_DATE('19-FEB-2014 03.00.00 PM','dd-MON-yy hh:mi:ss PM') AND sample_time < TO_DATE('19-FEB-2014 08.00.00 PM','dd-MON-yy hh:mi:ss PM') AND program LIKE 'oracle@%' GROUP BY user_id, program, module, machine, sql_id ORDER BY count(*) desc ) WHERE rownum <= 20 /
  • 66. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Results of Process History
  • 67. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Tyler Muth ASH Mining Query
  • 68. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | ASH Mining Output Additional Options: • Physical Read Averages • Physical Writes, (Max/Averages) • Redo Info • Login Info • Hard Parsing, etc.
  • 69. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Best Practice When Querying ASH Data Keep it Simple and don’t reinvent the wheel. Again- samples are an alias for time, not for counts. Understand what is valuable and compare to packaged reports. Be aware on RAC of node specific data. Take care when querying Obj#, File# and Block#, (still issues in different versions…) Check the time that is available in buffer, don’t assume!
  • 70. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2-3PM, 12th Vs. 13th Familiar interface with visual wait event comparisons. Average # of sessions during each period are displayed.
  • 71. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | IO Bound Dashboard  Base vs. comparison period  Temp reads/writes specified  Single block read latency
  • 72. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Monitor, EM12c Style • One More way to identify performance issues. • Monitoring view ease for those less familiar with database performance.
  • 73. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Monitor Dashboard Status of Statement Wait Events Degree of Parallelism SQL_ID SQL Text
  • 74. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Exadata and Offloading • Drill down to specific statement within SQL Monitor will display offload efficiency per statement.
  • 75. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Full Detail of SQL Execution
  • 76. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | View Report
  • 77. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Monitor Report via the Command Line Interface SET LONG 1000000 SET LONGCHUNKSIZE 1000000 SET LINESIZE 1000 SET PAGESIZE 0 SET TRIM ON SET TRIMSPOOL ON SET ECHO OFF SET FEEDBACK OFF SELECT DBMS_SQLTUNE.report_sql_monitor( sql_id => '5vh6y3b7tnv8r', type => 'TEXT', report_level => 'ALL') AS report FROM dual;
  • 78. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Text Output of SQL Monitor
  • 79. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | One of the Best & Least Used Features in Enterprise Manager: Search SQL Problem Query
  • 80. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | We Have the SQL_ID, What Next? 4v2tsp8dz0nhn is our SQL_ID Go to the EM Console, (Example is EM12c)
  • 81. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Search SQL Interface Choose AWR Snapshots, (change Time Period), AWR Baselines and put SQL_ID
  • 82. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Click on Search SQL_ID link for SQL Details Split up by tabs for Cursor, AWR, Baselines and SQL Tuning Sets Plan Hash Value Elapsed Time
  • 83. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Snapshot Data
  • 84. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Identify Using the information provided by Search SQL, locate the correct plan hash value to create a profile from.
  • 85. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | SQL Details
  • 86. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR Report or Run ADDM Report
  • 87. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Baseline Impact? Third Tab contains Baseline Information and links to verify if implemented.
  • 88. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | AWR/ASH Links/Blogs • Tyler Muth: http://tylermuth.wordpress.com/ • Kyle Hailey, John Beresniewicz, Graham Wood: http://ashmasters.com/ • Mine- “For the Love of ASH and AWR” http://dbakevlar.com/2011/02/for- the-love-of-awr-and-ash/ • Using AWR Reports: http://dbakevlar.com/2015/01/working-with-awr- reports-from-em12c/ • How to Use an ASH Report: http://dbakevlar.com/2015/02/how-to-use-an- ash-report-and-why/ • SQL ID Specific Performance Information: http://dbakevlar.com/2015/05/sql-id-specific-performance-information/
  • 89. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Connect with me-