+ All Categories
Home > Documents > - Oracleotn/documents/webcontent/... · ... in 2011 1200 M CHF (1300 M USD) ... •Ability to...

- Oracleotn/documents/webcontent/... · ... in 2011 1200 M CHF (1300 M USD) ... •Ability to...

Date post: 06-Mar-2018
Category:
Upload: duongxuyen
View: 218 times
Download: 3 times
Share this document with a friend
37
<Insert Picture Here> Deba Chatterjee and John Beresniewicz, Oracle Anton Topurov, CERN Oracle Enterprise Manager 12 c : ASH in 3D
Transcript
Page 1: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

<Insert Picture Here>

Deba Chatterjee and John Beresniewicz, Oracle

Anton Topurov, CERN

Oracle Enterprise Manager 12c: ASH in 3D

Page 2: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Agenda

ASH Analytics in Action

Case Studies Demo

Studying Database Performance with ASH Analytics

Exploring the performance dimensions over time

Multi-dimensional analysis within a time period

The DB Time Data Cube

What is DB Time ? ASH fundamentals Populating the cube

2| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 3: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

• What is ASH?

• What is DB Time?

• How are ASH and DB Time related?

3| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 4: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

DB Time Overview

4|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 5: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Database Time (DB Time)

Database Time is total time spent by user processes either actively working or actively waiting in a database call.

Total time spent inside database calls by active foreground sessions

Includes CPU time, IO time and non-idle wait time

Fundamental measure of Oracle performance throughput

5|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 6: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Active Sessions

• In a database call

• Contributing to DB Time Active

• Active Time ÷ Elapsed Time Average Activity

of a Session

• Total of average activity across all sessions

• Total DB Time ÷ Elapsed Time

Average Active Sessions

6|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 7: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Average Active Sessions

How many fully active sessions required to generate observed DB Time?

• Proportional to load on the database

• Responds directly to performance problems

Fundamental database performance metric

• Across systems

• Across time periods

Time-normalized DB Time and thus comparable

7| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 8: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

<Insert Picture Here>

ASH: The DB Time Data Cube

8|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 9: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Active Session History

SGA

Statistics

V$SESSION

ASH

Recent history

Rolling buffer

AWR snapshots

MMON

MMNL

V$ACTIVE_SESSION_HISTORY

ASH captures ACTIVE SESSION information every second

9|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 10: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Active Session History (ASH) All ‘Active’ sessions captured every second

• Foregrounds and backgrounds are sampled

• Active foregrounds contribute to DB Time

In-memory: V$ACTIVE_SESSION_HISTORY

• Sampling interval = 1 second

On-disk: DBA_HIST_ACTIVE_SESS_HISTORY

• Sampling interval = 10 seconds

ASH is a system-wide record of database activity

• A FACT table with multiple dimensions that help diagnose performance issues

10|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 11: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

ASH and DB Time

Active sessions contribute to DB Time

ASH samples active sessions

ASH Math = estimate DB Time by counting ASH samples

COUNT of ASH Samples = Total DB Time in seconds for that time interval

Group by over 70+ performance dimensions

11|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 12: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Dimensions in ASH

• Logically groups them under 5 categories

• Enables DB Time analysis over many dimensions

ASH

SQL

PL/SQL

Resource Consumption

Session Identifiers

Session Attributes

12|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 13: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Drilling into Logical Dimensions

ASH

SQL

PL/SQL

Resource Usage

Session Identifiers

Session Attributes

SQL

SQL ID

Plan Hash

Operation

OpCode

PL/SQL

PL/SQL

Top Level PL/SQL

Resources

Wait Class

Wait Event

Object

Blocking Session

Identifiers

Instance

Services

User Session

Parallel Process

Program

Session Type

Attributes

Cons. Group

Module

Action

Client

Trans. ID

13| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 14: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Analytic Operations Performed on Data Cubes

Operation Description

Rollup Performs aggregation on a data cube mainly by dimension

reduction

Drilldown Is the reverse of rollup. Navigates from less detailed data to more

detailed data on a dimension hierarchy

Slice Performs a selection on one dimension of the data cube resulting

in a sub cube

Dice Defines a sub-cube by performing a selection of two or more

dimension

Pivot Visualization operation that rotates the data axes to provide

alternate presentation

14| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 15: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Key Analytics Operations

SERVICE M

OD

UL

E

DICE

Dice on Service and Module

E.g. SELECT COUNT(*)FROM ASH

WHERE SERVICE = :FOO AND MODULE = :BAR

Drilldown on MODULE

SELECT COUNT(*), ACTION FROM ASH

WHERE MODULE = :BAR

GROUP BY ACTION

Rollup on Module:

SELECT COUNT(*), MODULE FROM ASH

GROUP BY ROLLUP(MODULE)

Slice by Service

SELECT COUNT(*) FROM ASH

WHERE Service = :FOO

SLICE

ASH DB Time Cube

ROLLUP

DRILLDOWN

15| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 16: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

<Insert Picture Here>

ASH Analytics

16|Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 17: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Top Activity Page…Predecessor to ASH Analytics

Key Facts

• Entirely sourced from ASH

• Multi-dimensional

• Use case: problem detection, isolation, triage

• Method: skew analysis

Dimensions visible

• Time

• Wait Class

• SQL

• Sessions

• Services

• Modules

17| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 18: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Top Activity Page ...Where could we improve?

Flexibility

• Can’t switch dimensions on area chart

• Top left list is fixed to Top SQL; right table only has few dimensions

• No offline analysis

Utilizing the full value

• Some key dimensions omitted

• Fixed width slider – 5 min real-time, 30 min historical

Visualization

• Visualization limited to time and one other dimension

• Drilldown always sends you to a new page

18| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 19: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

ASH Analytics

Flexible Time Picker

Flexible Activity Chart

Flexible Top Chart Flexible Top Chart

19| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 20: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Rollup the ASH Cube

• Rolled up ASH data in 3 broad wait class categories

• Green for CPU

• Blue for I/O

• Orange for ‘OTHER’ Waits

• The default view shows 1 hour of ASH data

• 5 minute default slider width.

20| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 21: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Drilldown

• Drilldown on the wait class dimension for the selected time period

• All consumed Wait classes displayed.

• Analysis pane that allows to slice and dice the ASH data

21| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 22: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Case Study # 1:

Slow response time due to high I/O

• Sliced the data on User I/O

• Drilling down to Top SQL using the Wait Event dimension

Wait Class

Add Filter

Top SQL

Wait Event

22| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 23: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Case Study # 2:

What is eating my DB Time ?

• Slicing the data on services

• Drilldown using the dimension hierarchy module and Top SQL

Service

Add Filter

Top SQL

Module

23| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 24: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Anton Topurov IT Department

Enterprise Manager at CERN

Page 25: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

The largest particle physics lab in the world

Twenty Member States Austria, Belgium, Bulgaria, Czech Republic, Denmark, Finland, France, Germany, Greece, Italy, Hungary, Netherlands, Norway, Poland,Portugal, Slovakia, Spain, Sweden, Switzerland, United Kingdom

Annual budget in 2011 1200 M CHF (1300 M USD)

External funding for experiments

Eight Observer States

European Commission, USA, Russian Federation, India, Israel, Japan, Turkey, UNESCO

People

2415 Staff 730 Fellows and associates 200 Students 9133 Users 2000 External Firm

25

Page 26: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

The largest particle accelerators 17 miles (27km) long tunnel Thousands of superconducting magnets Ultra vacuum: 10x emptier than on the Moon Coldest place in the Universe: -271° C

Page 27: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Oracle Enterprise Manager Usage

Monitoring 1500 targets 190 Oracle Database Instances

69 RAC databases

Oracle iAS and Weblogic application Servers

Services, etc

Main Purpose Proactive monitoring

Performance tuning

27

Page 28: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Enterprise Manager Cloud Control at CERN

Beta testing at Oracle HQ and at CERN

Several tracks and functionalities

Performance tuning of specific importance

for our DBAs

for the developers

28

Page 29: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

• Sliced the data on RMAN I/O

• Drilling down to corresponding wait event and histograms

• Slow network speed due to MTU 1500 on OVM

Wait Class

Add Filter

Histogram

Wait Event

Case Study: Slow backup times on VMs

29

Page 30: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Advantages of EM CC 12 for performance tuning

Interactiveness

Lots of dimensions to choose from

Flexibility

Fine-grained sliders

Active Reports

Can involve developers without access to EM system

30

Page 31: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Multidimensional Visual Analytics: Treemaps

• Space-efficient

visualization of hierarchical

(tree) structure

• Branches are rectangles,

sub-branches are nested

rectangles

• Scales well to hundreds or

even thousands of

elements

• ASH dimensions provide

many possible hierarchies

31| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 32: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

ASH Analytics:

Removing the time dimension

• Default Treemap View displays the Wait class Wait Event hierarchy for the selected time period

• Size of each rectangle corresponds to the number of samples collected for each wait event

Wait Class

Wait Event

32| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 33: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Treemap: Multi-Dimensional View

• Several pre-defined 2D & 3D hierarchies to view the data cube

• Ability to create custom hierarchy in advanced mode

ASH

Service

Module Action

SQL ID

Wait Class

Wait Event

SQL ID

Session

Object

33| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 34: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Case Study # 4: Analyzing the impact of the Enterprise

Manager Agent

• Informative picture of where the measured time is being spent by metric SQL collection on this instance

34| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 35: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Advantages of ASH Analytics

• Changeable dimensions everywhere

• Many new dimensions added (e.g.

SQL type, client machine, etc)

• Filters – Stay on same page while

adding context

• Treemap view – Effective top-list

visualization

• Better time picker – Fully changeable

slider can select any time period

• Active Report – Will replace ASH

Report eventually

ASH

Wait Class

Wait Event

Instance

Service

Module

Action

User Session

SQL ID

35| Copyright © 2011, Oracle and/or its affiliates. All rights reserved. |

Page 36: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

DEMO

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

Page 37: - Oracleotn/documents/webcontent/... ·  ... in 2011 1200 M CHF (1300 M USD) ... •Ability to create custom hierarchy in advanced

Questions

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


Recommended