+ All Categories
Home > Technology > IOUG at Coors Field ASH and AWR in EM12c!

IOUG at Coors Field ASH and AWR in EM12c!

Date post: 12-Jun-2015
Category:
Upload: kellyn-potvin-gorman
View: 366 times
Download: 3 times
Share this document with a friend
Description:
IOUG Master Class Slides on AWR and ASH in EM12c, Aug. 2014 at Coors Field in Denver, CO.
Popular Tags:
68
Transcript
Page 1: IOUG at Coors Field ASH and AWR in EM12c!
Page 2: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 3: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 4: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Page 5: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 6: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 7: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 8: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 9: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 10: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 10

“Tune for Time or You’re Just Wasting Time”

Page 11: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 11

When You Don’t Use ASH or AWR

Page 12: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 12

AWR is EVERYWHERE in EM12c

Page 13: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 13

SQL Monitor

Page 14: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 14

SQL Details and Session Details

In Top Activity or ASH Analytics

Page 15: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 16: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 16

Top Activity

Page 17: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 17

ASH Analytics

Page 18: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 18

Choose Timeline of Data

• Hour• Day• Week• Month

Page 19: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 19

Calendar Time Slot

• Choose dates• Isolate Time

Page 20: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 21: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 21

Wait Events

• Comfortable Interface• Common Legend

Page 22: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 23: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 24: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 24

Load Map

Page 25: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 26: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 26

Changing ASH Analytics Data Views

• Simple Combination Views

• Numerous Combinations

Page 27: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 28: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 28

Filtering

Page 29: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 30: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 31: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 32: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 33: IOUG at Coors Field ASH and AWR in EM12c!

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!

Page 34: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 35: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 36: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 36

Detailed Report

High level data, highlight for analysis and recommendations

Page 37: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 37

Regression SQLAny performance degradation is noted with the down arrow icon:

Page 38: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 39: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 40: IOUG at Coors Field ASH and AWR in EM12c!

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?

Page 41: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 42: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 43: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 44: IOUG at Coors Field ASH and AWR in EM12c!

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%

Page 45: IOUG at Coors Field ASH and AWR in EM12c!

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)

Page 46: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 47: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 48: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 49: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 50: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 50

Accessing the AWR Warehouse

Targets Databases

Performance AWR Warehouse

Page 51: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 51

AWR Warehouse Console Interface

Page 52: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 53: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 54: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 55: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 55

CPU Usage Issues

“Nothing’s changed in months…”

Page 56: IOUG at Coors Field ASH and AWR in EM12c!

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….”

Page 57: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 58: IOUG at Coors Field ASH and AWR in EM12c!

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)

Page 59: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 59

Interested in More Scripting?

Page 60: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 61: IOUG at Coors Field ASH and AWR in 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

Page 62: IOUG at Coors Field ASH and AWR in EM12c!

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

Page 63: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

AWR Data

Page 64: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 65: IOUG at Coors Field ASH and AWR in EM12c!

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.

Page 66: IOUG at Coors Field ASH and AWR in EM12c!

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/

Page 67: IOUG at Coors Field ASH and AWR in EM12c!

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential 67

Connect with me via Social Media:

Page 68: IOUG at Coors Field ASH and AWR in EM12c!

Recommended