Unleash the Value of the Data in Your OEM Repository

Similar documents
Did someone say the word 'Capacity?

Oracle Database 12c: Performance Management and Tuning NEW

ORACLE DATABASE ADMINISTRATOR RESUME

Oracle Database 10g: New Features for Administrators

SolarWinds Database Performance Analyzer (DPA) or OEM?

Internet Services. CERN IT Department CH-1211 Genève 23 Switzerland

Oracle Database Security and Audit

Oracle 11g Database Administration

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Module 2: Database Architecture

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Oracle Database 11g: Performance Tuning DBA Release 2

Cognos Performance Troubleshooting

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Database 11g: Administration Workshop I

Oracle Database Capacity Planning. Krishna Manoharan

Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

Customer evaluation guide Toad for Oracle v12 Database administration

Capacity Management for Oracle Database Machine Exadata v2

StreamServe Persuasion SP5 Oracle Database

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Inge Os Sales Consulting Manager Oracle Norway

Virtuoso and Database Scalability

Exadata for Oracle DBAs. Longtime Oracle DBA

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

Oracle Database 12c Recovery Manager New Features

White Paper. NEC Invariant Analyzer with Oracle Enterprise Manager

ORACLE CORE DBA ONLINE TRAINING

1. This lesson introduces the Performance Tuning course objectives and agenda

Oracle Database 11g: Administration Workshop II DBA Release 2

Data Integrator Performance Optimization Guide

Performance Baseline of Hitachi Data Systems HUS VM All Flash Array for Oracle

Setting Up Your Team-SQL Database for ORACLE 8.05

11. Configuring the Database Archiving Mode.

Rob Zoeteweij Zoeteweij Consulting

Response Time Analysis

Clustered Database Reporting Solution utilizing Tivoli

Partitioning under the hood in MySQL 5.5

Beyond the Basics: Making the Most of Oracle Enterprise Manager 12c Monitoring

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2007 Lecture 5 - DBMS Architecture

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Oracle Database 11g: Administration Workshop II Release 2

to Improve DBA Productivity

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

Ultimate Guide to Oracle Storage

A Comparison of Oracle Performance on Physical and VMware Servers

Application of Predictive Analytics for Better Alignment of Business and IT

Method R Performance Optimization the Smart Way. Chad McMahon. Senior Consultant, Database Services CGI

Oracle Database Auditing Performance Guidelines

<Insert Picture Here> Oracle Cloud Storage. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

Capacity Planning Use Case: Mobile SMS How one mobile operator uses BMC Capacity Management to avoid problems with a major revenue stream

Oracle Database 12c: Performance Management and Tuning NEW

11. Oracle Recovery Manager Overview and Configuration.

Provisioning, Patch Automation, and Configuration Management Lab

Multiple Linear Regression

Oracle 10g Feature: RMAN Incrementally Updated Backups

Optimizing Your Database Performance the Easy Way

Database Performance Monitor Utility

SnapManager 3.0 for Oracle Best Practices

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

MySQL Enterprise Backup

Dbvisit Replicate. Dbvisit Replicate Overview

Oracle Database Creation for Perceptive Process Design & Enterprise

Collecting Oracle AWR Reports for Database Infrastructure Evaluator Tool (DIET) by Hitachi Data Systems

Databases Going Virtual? Identifying the Best Database Servers for Virtualization

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

A Performance Engineering Story

Overview of I/O Performance and RAID in an RDBMS Environment. By: Edward Whalen Performance Tuning Corporation

PUBLIC Performance Optimization Guide

Oracle 11g DBA Training Course Content

Oracle Recovery Manager

A Comparison of Oracle Performance on Physical and VMware Servers

SQL diagnostic manager Management Pack for Microsoft System Center. Overview

Advanced Performance Forensics

Report and Dashboard Template User Guide

EView/400i Management Pack for Systems Center Operations Manager (SCOM)

Maximum Availability Architecture. Oracle Best Practices for High Availability

Drupal Performance Tuning

Installation and Configuration Guide for Windows and Linux

Proactive Performance Monitoring Using Metric Extensions and SPA

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

? Oracle Deutschland

Safe Harbor Statement

IBM DB2: LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

Enforcive /Cross-Platform Audit

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Oracle and Sybase, Concepts and Contrasts

Performance of Virtualized SQL Server Based VMware vcenter Database

A Walk Around the SQL Server 2012 Audit Feature. Timothy P. McAliley Microsoft Premier Field Engineer SQL Server

Axibase Time Series Database

Product Review: James F. Koopmann Pine Horse, Inc. Quest Software s Foglight Performance Analysis for Oracle

About Me: Brent Ozar. Perfmon and Profiler 101

Quick Start Guide. Ignite for SQL Server. Confio Software 4772 Walnut Street, Suite 100 Boulder, CO CONFIO.

Transcription:

Unleash the Value of the Data in Your OEM Repository Iordan K. Iotzov iiotzov@newsamerica.com News America Marketing (NewsCorp)

Sources of Information in OEM AWR/ASH SYSAUX DB1 SYSAUX DB2 SYSAUX DB3 OEM Repository OEM DB

Process of Metrics Gathering in OEM Databases Databases Databases OS OS ASM OS Upload files OEM agent Upload files OEM agent Upload files OEM agent OEM Server MGMT$METRIC_CURRENT MGMT$METRIC_DETAILS MGMT$METRIC_HOURLY MGMT$METRIC_DAILY OEM Repository

Some Metrics-related OEM Repository Tables Aggregate Aggregate Raw Raw Reference Data

Useful Applications averages over any period of time Find the average run queue length during business hours(m-f, 7 am 8 pm) for 30 days

Useful Applications averages over any period of time Find the average run queue length during business hours(m-f, 7 am 8 pm) for 30 days Query: select avg(average) mgmt$metric_hourly rollup_timestamp > sysdate 30 and target_name = 'dbtest01' and metric_name = 'Load' and column_labal = 'Run Queue Length (1 minute average)' and to_char(rollup_timestamp,'day') not in ('SATURDAY','SUNDAY') and rollup_timestamp between trunc(rollup_timestamp,'dd') + 7/24 and trunc(rollup_timestamp,'dd') + 20/24 Output: 2.97053285256410256410256410256410256411 Opportunities: Unlimited flexibility in managing OEM metrics data

Useful Applications enforcing enterprise-wide policies Monitor Force Logging mode for all production databases. Create UDM in each production database. The sole purpose of this UDM would be to supply data to the OEM repository

Useful Applications enforcing enterprise-wide policies Monitor Force Logging mode for all production databases. Create UDM in the OEM repository database. This UDM will notify/page DBAs if a DB is not in Force Logging mode

Useful Applications enforcing enterprise-wide policies Monitor Force Logging mode for all production databases. The full query behind the OEM repository UDM: select count( member_target_guid ) mgmt$group_derived_memberships o, mgmt$target t o.composite_target_name = PROD' and o. member_target_guid = t.target_guid and ( t.target_type ='rac_database' or (t.target_type ='oracle_database' and t.type_qualifier3!= 'RACINST ) ) and not exists ( select * mgmt$metric_current i i.target_guid = o.member_target_guid and metric_name = 'SQLUDM' and column_label = 'ForcedLogging' and Metric_Column = 'StrValue' and collection_timestamp > sysdate - 20/1440 and value = 'YES )

Useful Applications enforcing enterprise-wide policies Monitor Force Logging mode for all production databases. How about exempting a database? One need to do a concerted effort to exempt a database.

Useful Applications enforcing enterprise-wide policies Monitor Force Logging mode for all production databases. Ability to deliver customized solutions all but two tablespaces (TBLS_STG, TBLS_UNRECOVERABLE) must be in Force Logging mode

Useful Applications integration with other data sources Combining ASH/AWR and OEM repository Where does the variation in single block read time come? select corr(db.time_waited, oem.value), count(*) (select writes_ps 0.04 sample_time, time_waited reads_ps -0.04 write_throughput 0.04 dba_hist_active_sess_history@prod_db read_throughput 0.01 event = 'db file sequential read' and session_state = 'WAITING' and sample_time > sysdate - 1 ) db, ( select collection_timestamp, value mgmt$metric_details target_name = '+ASM_PROD' and metric_name = 'Single_Instance_DiskGroup_Performance' and metric_column = <ASM Metric>' ) oem oem.collection_timestamp between db.sample_time - 15/1440 and db.sample_time ASM Metric Correlation Very different sampling rates usually result in lower correlation

Useful Applications the power of Oracle s own SQL Why is the latency of Streams Apply so high? Could it be the disk IO? It is often the issue Check: select corr(streams_latency.value, IO_load.value) ( select * mgmt$metric_details target_name = 'STRDEST' and metric_name = 'streams_latency_throughput' and column_label = 'Latency' ) streams_latency, (select * mgmt$metric_details target_name = STRDEST' and metric_name = 'instance_throughput' and column_label = 'I/O Megabytes (per second)') IO_load streams_latency.collection_timestamp between IO_load.collection_timestamp and IO_load.collection_timestamp + 5/(60*24) and streams_latency.collection_timestamp > sysdate 1 Output: -0.001043436634863007975354458994748444098631 Interpretation: Hypothesis rejected! Need to look for other explanation

Check: Useful Applications the power of Oracle s own SQL Why is the latency of Streams Apply so high? Maybe it is the redo volume on the Capture side select corr(streams_latency.value, redo_source_1.value + redo_source_2.value) ( select * mgmt$metric_details target_name = 'STRDEST' and metric_name = 'streams_latency_throughput' and column_label = 'Latency' ) streams_latency, (select * mgmt$metric_details target_name = 'STRSRC_STRSRC 1' and metric_name = 'instance_throughput' and column_label = 'Redo Generated (per second)' ) redo_source_1, (select * mgmt$metric_details target_name = 'STRSRC_STRSRC 2' and metric_name = 'instance_throughput' and column_label = 'Redo Generated (per second)' ) redo_source_2 streams_latency.collection_timestamp between redo_source_1.collection_timestamp and redo_source_1.collection_timestamp + 5/(60*24) and streams_latency.collection_timestamp between redo_source_2.collection_timestamp and redo_source_2.collection_timestamp + 5/(60*24) and streams_latency.collection_timestamp > sysdate 1 Output: 0.7641297491294021289799243642319279128629 Interpretation: The redo volume on the Capture side is likely the reason for increased latency on the Apply side

Advanced Forecasting Example - tablespace size forecast Simple linear regression: tbls(t) = tbls0 + incr*t tbls0 (Intercept) tablespace size for time 0 incr (Slope ) how fast a tablespace grows t time tbls(t) tablespace size at time t

Size (MB) Advanced Forecasting Example - tablespace size forecast Quality of forecasting - 95% prediction interval of the regression line 30000 25000 20000 15000 10000 Historical Min Range Max Range Forecast 5000 0-56-54-47-40-33-26-19-18-11 -4 3 10 17 24 31 38 45 52 59 66 73 80 87 Time (days)

Advanced Forecasting Example - tablespace size forecast Getting raw historical tablespace sizing data the OEM repository insert into raw_data select m.rollup_timestamp, m.average mgmt$metric_daily m, mgmt$target_type t (t.target_type ='rac_database' or (t.target_type ='oracle_database' and t.type_qualifiers3!= 'RACINST')) and m.target_guid =p_target_guid (Database) and m.target_guid = t.target_guid and m.metric_guid =t.metric_guid and t.metric_name ='tbspallocation and t.metric_column = 'spaceused' and m.rollup_timestamp >= sysdate - p_period_hist and m.rollup_timestamp <= sysdate and m.key_value = p_tablespace_name;

Utilize Oracle s built-in packages and functions to compute most of the statistics in this project select into Advanced Forecasting Example - tablespace size forecast regr_intercept (average, rollup_timestamp - sysdate ), regr_slope (average, rollup_timestamp - sysdate ), regr_r2 (average, rollup_timestamp - sysdate ), regr_count (average,rollup_timestamp - sysdate ), regr_avgx (average,rollup_timestamp - sysdate ), regr_sxx (average,rollup_timestamp - sysdate ), regr_syy (average,rollup_timestamp - sysdate ), regr_sxy (average,rollup_timestamp - sysdate ).. raw_data Import data and create functions that are not available in Oracle create or replace FUNCTION f_forecast_t_dist (p_degree_freedom NUMBER, p_conf NUMBER) RETURN NUMBER IS l_res NUMBER; l_one_tail_conf NUMBER; BEGIN --- Custom Code END f_forecast_t_dist;

Final computations Advanced Forecasting Example - tablespace size forecast l_ci:=sqrt ( 1/ l_cnt + power((p_period_forecast - l_avgx),2) / l_sxx ); l_sigma:= sqrt( abs( ) /(l_cnt-2) (l_syy - (power(l_sxy,2)/l_sxx) ) ) ; p_out_estimate_95_range:=(l_ci * f_forecast_t_dist(l_cnt-2,0.95) * l_sigma) ;

Advanced Forecasting Example - tablespace size forecast Delivery Methods - Various

Sample Output: Advanced Forecasting Example - tablespace size forecast

References Metalink Note 831243.1 (Examples: Creating Custom Reports). Oracle Enterprise Manager Extensibility 10g Release 2 (10.2) for Windows or UNIX Liang s Blog: http://lianggang.wordpress.com/category/grid-control/ OEM 11g appears to have the same OEM repository structures as OEM 10g