Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop...

36
Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah

Transcript of Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop...

Page 1: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

Presentation Date

Top Down Performance Management with OEM

Grid Control

Or how I learned to stop worrying and love OEM Grid Control

10/1/2010

John Darrah

Page 2: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

The DBA Challenge

• Manage complex environments– N-Tier environments with several entry points to the

database or databases

• Manage many database environments– Fewer DBAs to manage more environments

• Need to respond to performance problems – DBAs must be able to track down root cause across

several environments– DBAs must be able to demonstrate the problem is not

database related

Page 3: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

The Past

WMS ERP Custom App

Page 4: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

The Present

Web Server Farm 1

Internet Trading Partners

WMS

ERP

Custom App CRM

ESB

Internal DMZ

ERP1 ERP4ERP3ERP2

External DMZ

Web Server Farm 2

Web Service 1

Enterprise Data Warehouse

External Web Service

Web Service 3Web Service 2

Page 5: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

How do you monitor environments?

• SQL Trace

• SQL*Plus Scripts

• StatsPack / AWR

• Third Party Monitoring Applications

• Users

• Prayer

• OEM (dbconsole)

• OEM Grid Control

Page 6: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Which Monitoring tools are best?

• All of them have their place– All of the above methods have advantages and

disadvantages– Use the right tool for the right situation– Don’t become entirely dependent on GUIs

• Take a Top-Down Approach– OEM is an ideal solution for a top down tuning

approach– Most of the other approaches are more suited for

detailed analysis of individual problems

Page 7: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

The need for a Top Down approach

• In complex environments it is difficult to find the problem much less address it

• <sarcasm> Database is always the performance bottleneck

</sarcasm>

• The good old days of client server apps (i.e easy to trace) are long gone.

Page 8: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

“The WMS database is down!”

WMS

Custom App CRM

ESB

Web Service 1

Page 9: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Top Down Approach

• Use Groups and dashboards to quickly identify problems in the areas you care about– Group dashboards give a high level view of targets

Page 10: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Top Down Approach cont.

• Start at a high level and drill down– Quickly identify problems and drill into root cause

Page 11: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

“The ERP database is down!”

ERP

ERP1 ERP4ERP3ERP2

Page 12: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Drilling into RAC environments

Page 13: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Performance Tab Summary

• OEM’s performance Page provides – High Level performance Metrics on database

performance– A graphical representation of AWR data (10/11g)– Top Activity analysis and Drilldown– SQL Tuning Advisor (10/11g)

Page 14: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

OEM Performance Tab (10g)

Page 15: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Top Activity

• Shows a 1-hour timeline of the top activity running on the database

• Displayed in 5-minute intervals

• Timeline graph gives the ability to look at past statements

• ASH and SQL Tuning available from this page

Page 16: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Top Activity

Page 17: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Top Consumers

Page 18: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

SQL Tuning Advisor

• Runs a series of what-if scenarios and data analysis to better determine plan efficiency

• Provides a list of suggestions weighted by % improvement

• Only available with 10g or 11g + Diagnostics and Tuning option

Page 19: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

SQL Tuning Advisor

Page 20: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

“Our ETL ran long, what happened?”

Enterprise Data Warehouse

Page 21: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Grid Control can show historical as well as real time data

Page 22: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

ASH Reporting

• Shows Active Session History– V$ACTIVE_SESSION_HISTORY– DBA_HIST_ACTIVE_SESS_HIST

• The Same report can be run from SQL*Plus– OEM Takes care of formatting and parameters

Page 23: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

ASH Reporting

Page 24: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

A Note about 8i and 9i Databases

• Requires additional setup– See section 10.3 of advanced configuration guide

• Lacks ADDM, AWR, ASH

• Still provides valuable information to a DBA

Page 25: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

8i and 9i Cont

• Snapshots of a SQL statement

Page 26: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

“The web servers are crashing! What’s wrong with the database?!”

Web Server Farm 1

ERP

ERP1 ERP4ERP3ERP2

Page 27: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Interdependent Targets are grouped into Systems

• Different targets that fulfill a business need– Host – Database– Listener – Web servers– Load Balancer

• All of the targets must be available to service the system

Page 28: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Services can monitor Systems in OEM

• Create Tests that run synthetic transactions

• Determine the availability of a service– Critical system component availability– Service availability

• Beacons can test service availability and performance from many locations– Internal– External

• Beacons give visibility to end user experience

Page 29: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Service Test Example

Page 30: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

AD4J expands Grid Control’s abilities

• AD4J stands for advanced Diagnostics for Java

• Provides the ability to inspect JVM heaps– Memory Leak detection

• Provides the ability to profile individual threads

• Provides the ability to tie a thread to a database session

• Fully integrated into Grid Control as of OEM 11

• Service Tests and Beacons provide the what, AD4J provides the why

Page 31: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

AD4J Dashboard

Page 32: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

AD4J Active Thread Trace

Page 33: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Beyond Performance Monitoring

• Performance monitoring it crucial but does not provide a complete solution– Look at present and past activities, not a look ahead– It is reactive– Tactical

• The complete IT shop needs to look forward as well– Capacity planning– Operational budgeting

Page 34: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Beyond Performance Monitoring (cont)

• OEM Grid Control repository is essentially an ODS – Performance Metrics gathered from all targets– Configuration information about targets– Utilization regarding Targets

• Data from the OEM repository can be mined – What is the average utilization of the EBS servers?

• How is that utilization trending? – What is my breakout of different models of servers?

• Sun Op Center takes this concept further

Page 35: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

The Future

• OEM Grid Control will continue to evolve– Many recent Acquisitions will be woven into the OEM

brand / framework• Sun Op Center

• Oracle will continue to improve on the end to end top down vision monitoring solution– RUEI– Op Center

Page 36: Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.

© DBAK 2010

Questions

• John Darrah

[email protected]

• www.dbaknow.com