Post on 12-Jun-2015
description
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential
Enterprise Manager 12c Performance FeaturesEnterprise Manager 12c, Release 4
Kellyn Pot’VinConsulting Member of Enterprise Manager Technical TeamStrategic Customer ProgramAugust 19th, 2014
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
CommunitiesKnowledge
Saring Education
Become a Part of the IOUG Community
Access
• Individual and corporate membership options available for you or your team• Member discounts to in-person training events such as IOUG Master Classes and COLLABORATE 15
Premier Technical Education
• SELECT Journal, IOUG’s premier technical journal• Get industry trends and data with ResearchWire studies• Dig into the IOUG Solution Center, featuring all of IOUG’s whitepapers, webinars, presentations and
recordings
Network with over 25,000 users
• Get targeted advice and share solutions through our Special Interest Groups• Take advantage of our blogs, LinkedIn, Twitter and Facebook connections
Learn more at www.ioug.org
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor StatementThe 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.
Oracle Confidential 5
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 6
Program Agenda
1
2
3
4
5
AWR/ASH in EM12c
ASH Analytics
ADDM Comparisons
The AWR Warehouse
The Features Everyone Misses
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 7
Program Agenda with Highlight
1
2
3
4
5
AWR/ASH in EM12c
ASH Analytics
ADDM Comparisons
The AWR Warehouse
The Features Everyone Misses
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 8
Review of “DB Time”
• It is the accurate measure and term used for Oracle performance throughput.
• DB Time is total of all time spent on database calls by foreground processing for active sessions.
• It is comprised of all CPU Time, IO Time and non-idle wait time.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 9
“ASH Math”
• One out of every ten samples is saved to AWR
• Estimate of DB Time based off of ASH Samples residing in AWR
• Count of ASH Samples are basis for DB Time for the Time Interval in question.
• Data is grouped by over 70+ performance dimensions to ensure the most accurate data using samples.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 10
“Tune for Time or You’re Just Wasting Time”
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 11
When You Don’t Use ASH or AWR
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 12
AWR is EVERYWHERE in EM12c
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 13
SQL Monitor
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 14
SQL Details and Session Details
In Top Activity or ASH Analytics
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 15
Program Agenda with Highlight
1
2
3
4
5
AWR/ASH in EM12c
ASH Analytics
ADDM Comparisons
The AWR Warehouse
The Features Everyone Misses
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 16
Top Activity
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 17
ASH Analytics
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 18
Choose Timeline of Data
• Hour• Day• Week• Month
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 19
Calendar Time Slot
• Choose dates• Isolate Time
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 20
Custom
• Choose Start Date and Time• Choose End Date and Time• Scroll to Area within Timeline that is of Interest
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 21
Wait Events
• Comfortable Interface• Common Legend
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 22
Flexible Data Display
• SQL ID is default
• Broaden view to display any dimension available in drop down.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 23
Second Table Display
Just as flexible and almost as many options as first table.
Can be used in conjunction to the first to give extended view of waits and session data.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 24
Load Map
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 25
What is a Load Map?
• Visual way to display data.• Can support multiple
dimensions.• Can offer a way to explain
waits, issues that other graphs can’t.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 26
Changing ASH Analytics Data Views
• Simple Combination Views
• Numerous Combinations
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 27
Advanced Load Map Views
• You Control the Combination
• Two or Three Dimensions
• Advanced Filtering Options
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 28
Filtering
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 29
Summary
• The Future of Top Activity
• Multiple Dimensions and View Options
• Advanced Filtering
• Load Map View for Extended Display of Data
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 30
Program Agenda with Highlight
1
3
2
4
5
AWR/ASH in EM12c
ASH Analytics
ADDM Comparisons
The AWR Warehouse
The Features Everyone Misses
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 31
How Often do We Ask, What Changed?
• It ran fine last week, now it isn’t!
• ETL loads have changed, but no one has released any new code!
• The DBA says there hasn’t been any parameter changes to this database, but I’m sure there have been.
Compare ADDM Resolution
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 32
What is Compare ADDM?
• Uses Two AWR snapshots
• Creates Report that-
• Compares SQL that is common and different.
• SGA changes
• IO/CPU bound issues
• Parameter Changes
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 33
A Comparison ADDM Report…
• Report Includes Following:• Clear Demonstration of impact of change.• Recommendations to address issue.• Identifies causes behind change, (with limitations.)• Lists Regressed SQL, too!
Tip: If Installing to database for first time, (simple installation, nothing to concern about, just pkg to fulfill views) you must have preferred credentials SET of install will fail!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 34
Creating a Report
• Choose focus period
• Choose to compare to an Offset, Baseline or Custom
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 35
2-3pm, Compared on the 12th vs. the 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. | Oracle Confidential 36
Detailed Report
High level data, highlight for analysis and recommendations
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 37
Regression SQLAny performance degradation is noted with the down arrow icon:
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 38
Top Segments Causing IO Waits
• High Level data• Click on “Show Hot Object Breakdown” to see more detail.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 39
Resource Comparisons• Comparisons of Memory, CPU, IO and Interconnect.
• Memory Is there Virtual paging?
- Memory Base Period
- Memory Comparison Period
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Dashboard Provided for CPU, Memory, IO and Interconnect• Is something OTHER than Oracle the cause?
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. | Oracle Confidential 42
Summary• Familiar Interface design
• Compare any snapshots within AWR, even if times are not same.
• Provides clear, concise information about differences, degradation, improvements, along with recommendations.
• Easy access to other performance data and reports.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 43
Program Agenda with Highlight
1
4
2
3
5
AWR/ASH in EM12c
ASH Analytics
ADDM Comparisons
The AWR Warehouse
The Features Everyone Misses
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse in EM12c• Automatic Workload Repository
(AWR) is the de facto performance repository for Oracle databases since 10g
• Default retention period of 8 days prevents diagnosis of long term performance problems (“Compare performance during this quarter’s books close with last quarter’s”)
• Increasing AWR retention period increases overhead and cost in critical production environments
CRMFinance Supply Chain
0%
30%
60%
90%
120%
0%
30%
60%
90%
120%
0%
30%
60%
90%
120%
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse - Architecture• 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 © 2014 Oracle and/or its affiliates. All rights reserved. |
AWR Warehouse Features• 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 © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 47
Requirements
• AWR Warehouse Repository -11.2.0.4 or higher.
• Preferred Credentials set up for all targets involved.
• Discover the database you will use for your repository in the EM12c
• Pre-discover any source database before able to add.
• For a RAC target or AWR Warehouse, ensure you’ve set up a shared location for the ETL load files.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 48
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 © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 49
AWR Warehouse DBSNMP Object of Importance, (OI)
CAW_DBID_MAPPING : Used to map all data between Enterprise Manager, AWR Warehouse and Database Identifiers.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 50
Accessing the AWR Warehouse
Targets Databases
Performance AWR Warehouse
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 51
AWR Warehouse Console Interface
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 52
AWR Warehouse ConfigurationsAlong with AWR Warehouse Basics-
• Configuration Status
• Version of Repository Database
• Host Information
• Connect Info, (SID/Service Name, Port)
• Space Usage, Upload Interval and Retention
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 53
Working with AWR Source Databases in Repository
• Highlight database from list, (clicking on target name will take you to performance home page for target.)
• Run basic reports, view ASH Analytics or perform ADDM Comparisons.
• Also Add databases from the options.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 54
What Can I do with the AWR Warehouse?
16:5916:5917:2917:2917:5917:5918:3018:3019:0019:0019:3019:3020:0020:000
50000
100000
150000
200000
250000
300000
350000
400000
June 10, 2013
l_reads_s read_iops_maxread_iops_direct read_iops_direct_max
20:3020:30
20:5920:59
21:3021:30
22:0022:00
22:3022:30
23:0023:00
23:3023:30
23:5923:59
0:290:29
0
100000
200000
300000
400000
500000
600000
June 10, 2014
l_reads_s read_iops_maxread_iops_direct read_iops_direct_max
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 55
CPU Usage Issues
“Nothing’s changed in months…”
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 56
Using the AWR Warehouse for Capacity Planning
“Do we really need more partitioning and pruning? Our disk usage hasn’t increased this last year….”
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 57
Querying the AWR Warehouse Tips
Update Scripts with DBID identified to filter.
Join:
• CAW_DBID_MAPPING on OLD_DBID/NEW_DBID=DBID
• CAW_DBID_MAPPING on TARGET_NAME=TARGET_NAME
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 58
How Current AWR 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 © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 59
Interested in More Scripting?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 60
Program Agenda with Highlight
1
5
2
3
4
AWR/ASH in EM12c
ASH Analytics
ADDM Comparisons
The AWR Warehouse
The Features Everyone Misses
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. |
AWR Data
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Snapshot IDs• Click on Snapshot ID and gather valuable data on resource usage during
snapshot time or choose to view report.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
SQL Monitor, 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. | Oracle Confidential 66
Want to Learn More?
Oracle Screenwatch: https://www.youtube.com/watch?v=StydMitHtuI
DBAKevlar Blog Posts:
http://dbakevlar.com/2014/06/awr-warehouse-in-em12c-rel-4/
http://dbakevlar.com/2014/06/awr-warehouse-in-em12c-rel-4-part-ii/
Scripts: http://dbakevlar.com/scripts/
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 67
Connect with me via Social Media: