The Self-Managing Database : Automatic Health Monitoring and Alerting Daniela Hansell & Gaja Krishna Vaidyanatha Product Managers, Server Technologies,

Slides:



Advertisements
Similar presentations
Be an Effective DBA using Oracle 10g Automatic Database Diagnostic Monitor Edward Hayrabedian Semantec Bulgaria OOD.
Advertisements

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.
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
AppMetrics – Monitoring for COM+ Components Scott Matsumoto Chief Technical Officer Xtremesoft, Inc.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
The Self-managing Database: Automatic Performance Diagnosis Graham Wood Kyle Hailey Oracle Corporation Session id:
ManageEngine TM Applications Manager 8 Monitoring Custom Applications.
Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation.
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Simplify your Job – Automatic Storage Management Angelo Session id:
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Oracle Database 10g Automation Features Dallas Oracle Users Group - Oct Arun Kumar R. Cingular Wireless.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
12 Copyright © 2004, Oracle. All rights reserved. Automatic Management.
Database Advisors Automatic Database Diagnostic Monitor ( ADDM )
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
Preface 1 Introduction Course Objectives 1-2 How DBAs Spend Their Time 1-3 Oracle Database 10g Manageability Goals 1-4 Database Management Challenges 1-5.
Michael Sit Solution Specialists Manager Oracle Corporation.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
1 Entire contents © 2007 Forrester Research, Inc. All rights reserved.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
The New Enterprise Manager: End to End Performance Management of Oracle Solutions Julie Wong Principal Product Manager Arsalan Farooq Senior Development.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
By Lecturer / Aisha Dawood 1.  Dedicated and Shared Server Processes  Configuring Oracle Database for Shared Server  Oracle Database Background Processes.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
The Self-Managing Database: Automatic SGA Memory Management Tirthankar Lahiri Senior Manager, Distributed Cache & Memory Management Oracle Corporation.
System Center Operations Manager 2007 Overview Amit Gatenyo Infrastructure & Security Team Lead Dario.
Integrated Monitoring Dashboard SEAP/BTIS/DB&I/Mar Integrated Monitoring Dashboard An Innovative Monitoring Approach Proposal by BTIS/DB&I.
Securing Your Enterprise with Enterprise Manager 10g Amir Najmi Principal Member of Technical Staff System Management Products Oracle Corporation Session.
The Invisible Oracle: Deploying Oracle Database in Embedded Environments Anuj Goel Mughees Minhas Oracle Corporation Session id:
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
10G - New Manageability Features Presented by Lenka Vanek
The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation.
Enterprise Manager: Scalable Oracle Management John Kennedy System Management Products, Server Technologies, Oracle Corporation Session id:XXXXX.
Jorke Odolphi Product Technology Specialist WebCentral Using Microsoft Operations Manager To Monitor And Maintain Your Farm.
OEM 10g Performance and Tuning. #.2 Copyright 2006 Kyle Hailey Performance SQL Diagnostics SQLTuning Performance Session DB HOME.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
An overview of AWR, ASH and ADDM. Learning About AWR Real-World Performance Day with Tom Kyte The Independent Oracle Users Groups presents “A Day of Real-World.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
Understanding the New PTC System Monitor (PSM/Dynatrace) Application’s Capabilities and Advanced Usage Stephen Vaillancourt PTC Technical Support –Technical.
Data, Space and Transaction Processing
How To Pass Oracle 1z0-060 Exam In First Attempt?
Michael Mast Senior Architect
Steven George Sr. Delivery Manager
Introduction.
Introduction of Week 3 Assignment Discussion
Introduction of Week 10 Assignment Discussion
One Picture is Worth a Thousand Words
Get Verified Oracle 1z0-062 Study Material - Oracle 1z0-062 Exam Dumps PDF Realexamdumps.com
Proactive Maintenance
How to Thrive as a DBA in an Oracle10g World
Microsoft Virtual Academy
Index Index.
7/28/ :33 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
Presentation transcript:

The Self-Managing Database : Automatic Health Monitoring and Alerting Daniela Hansell & Gaja Krishna Vaidyanatha Product Managers, Server Technologies, Oracle Corporation Paper# : 40169

Agenda  Introduction  Why do you care?  The Uncertainty Principle – A Required Detour  Problems with currently available monitoring systems  Automatic Database Health Monitoring in 10g  Benefits of Oracle 10g’s server-generated alerts  Benefits of 10g’s Server Performance Management  EM 10g Database Control  PL/SQL APIs for 3 rd Party Integration  Conclusion  Q & A

Introduction  Databases are sprouting all over in number  Databases are growing in size  Effective Management is key – Self-managing – Increased efficiency – Lower costs – Proactive problem detection, diagnosis and resolution  Server-generated alerts provide the foundation for self-managing performance and database management

Why do you care?  Solution to all life’s problems is 42 – Douglas Adams’ “The Hitchhiker’s Guide to the Galaxy” (Check out the “ultimate” version)  Too much time spent in performance management – Sometimes for the wrong reasons!  Need to empower you to be more productive  Need to know about “real problems” before they arise – Can tolerate only so many bad hair days?  Server-generated alerts provide monitoring functionality at miniscule levels of overhead

The Uncertainty Principle – A Required Detour  Proposed by Werner Heisenberg in 1927  Discovered that the velocity and distance of a subatomic object or particle cannot be accurately measured  If you shine a light source on an object or particle, the photons affect (move) subatomic particles in a significant fashion – Can’t get accurate readings for both distance and velocity – Even if distance is measured, velocity measurements are rendered useless  Conclusion : The Observer Affects the Observed – This is not true at macroscopic levels

Problems with currently available monitoring systems - I  The Observer Affects the Observed – At the Macroscopic level  Databases are affected when monitored – Contention (Latching, I/O) – Potential Downtime (CUI) – Resource Overhead  Excessive Resource Overhead – No pain, no gain…unless it is too much pain – Anything > 1% is too much – Data pings (pull-based mechanism) – Direct-SGA Attached Monitors don’t come overhead-free  Visit to the Family Physician’s Office

Problems with currently available monitoring systems - II  Complexity of Setup & Required Customization – Scripts – Schema Objects – Deployment Inflexibilities  Manual Configuration  Task Repetition – Lack of Scalability  Issues with Mass Deployment  Lack of transition from Problem Detection  Diagnosis  Resolution

Database Health Monitoring : Before - Alert Polling Oracle Server Process/ Agent V$ Views Poll Metrics Notify Management Console SGA Structures Notify DBA (Page/ )

Automatic Database Health Monitoring : Now - Alert Pushing ALERT_QUE Advanced Queue (Automatic Persistence) Server Pushes Alerts Automatic Workload Repository (AWR) Automatic Notification Notify Management Console Oracle Server (SGA) Oracle Server (SGA) Process/ Agent MMON Notify DBA (Page/ )

 Server-generated Alerts – Proactive – Out-of-the-box – Push instead of Pull – Just-in-time Automatic Database Health Monitoring Intelligent Infrastructure Application & SQL Management System Resource Management Space Management Backup & Recovery Management Storage Management Database Management Automatic Workload Repository Automatic Maintenance Task Infrastructure Server-generated Alert Infrastructure Advisory Infrastructure

Benefits of 10g’s Server- Generated Alerts No Pinging (Data Push, Proactive) Extremely Low Overhead (< 0.1% resource consumption) Oracle Server (SGA) Alert history persisted to AWR The Observer Affects the Observed (Subatomic) Minimal Configuration MMON

Benefits of 10g’s Server Performance Management Automatic Database Diagnostic Monitor (ADDM) SQL Tuning Access Memory Space PGA SGA Segment Advisor Undo Advisor Buffer Cache Shared Pool – Comprehensive Advisory Framework – Integrated drilldowns from Diagnosis to Resolution

Use Case – Where the Rubber Meets the Road Oracle Server (SGA) AWR ADDM diagnoses the problem (Identifies SQL statements) Alerts detect problem condition (Unacceptable Database Wait Time Ratio) 10g Advisors AWR Snapshots MMON SQL-Tuning Advisor tunes the query

Type of Alerts  Threshold-based: – Associated with a condition such as a threshold being exceeded. – Example: Tablespace fullness. – Behavior: Alerts automatically cleared when alert condition clears.  Non-threshold: – Associated with an occurrence of an event such as an error. – Example: ORA Snapshot too old. – Behavior: Cleared by user acknowledgment.

Alert Types Examples  Threshold-based – Active Sessions Waiting for I/O – Active Sessions Waiting for CPU – Active Sessions Waiting for Non-I/O-related events  Non-threshold-based – Snapshot too old – Resumable Session Suspended

Threshold Configuration  Most server-generated alerts are configured by setting two threshold values on database metrics – Warning Threshold – Critical Threshold  Other Server Alerts correspond to specific database events such as “Snapshot too old” – There are NO thresholds associated with these

Out-of-Box Alerts  Enabled by default in the server: – Tablespace Space Usage (warning 85%, critical 97%) – Snapshot Too Old – Recovery Area Low On Free Space – Resumable Session Suspended  Other alerts may be enabled out of box by Enterprise Manager alert framework.  Automatic threshold settings in upcoming releases – Based on database workload not black magic

Monitoring Architecture

Related Technical Details  Alerts on 10g Server Wait Classes – Application – Concurrency – User I/O – System I/O – …  Measurement done within the Oracle process every minute  Avoid False Peaks – Calculate # of occurrences  Persistence maintained with flushes to AWR  Alerts have Actions to facilitate corrective measures

New Views Recent Metrics Metric History Server-generated Alerts V$SYSMETRIC_HISTORY V$SYSMETRIC DBA_HIST_SYSMETRIC_ HISTORY DBA_THRESHOLDS V$ALERT_TYPES V$SVCMETRIC … … … AWR DBA_OUTSTANDING_ALERTS DBA_ALERT_HISTORY

Enterprise Manager 10g Database Control

Usage Model Set up notification rules (Paging, ) Use Advisors for problem diagnosis and correction Review alert details and advice Optionally customize alerts thresholds Receive notification

Database Home

ADDM Finding Details

Database Performance

User I/O Wait Class Drilldown

SQL Details

PL/SQL APIs for 3 rd Party Integration

Setting Thresholds DBMS_SERVER_ALERTS SET_THRESHOLDGET_THRESHOLD SQL> exec DBMS_SERVER_ALERT.SET_THRESHOLD (9000,  Metric Identifier, METRIC_ID in V$METRICNAME DBMS_SERVER_ALERT.OPERATOR_GE,  Operator for Warning Threshold ’60’,  Warning Threshold DBMS_SERVER_ALERT.OPERATOR_GE,  Operator for Critical Threshold ’80’,  Critical Threshold 1,  Observation Period in Minutes 1,  Occurrences NULL,  Instance Name (NULL implies ORACLE_SID value) DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,  Object Type 'KITCHEN‘  Name of the Object);

Consuming Server-generated Alerts – 3 rd Party Use Case 1.Subscribe to ALERT_QUE using dbmsaqadm.add_subscriber() 2.Create the agent for the subscribing user of the alerts using the dbmsaqadm.create_aq_agent() 3.Associate the db user with the AQ agent using the dbmsaqadm.enable_db_access() 4.Grant the dequeue privilege using the dbms_aqadm.grant_queue_privilege() 5.Register for alert enqueue notification (optional) using aq$reg_info() and dbms_aq.register()

Consuming Server-generated Alerts – 3 rd Party Use Case 6.Configure and http proxy using various procedures in dbms_aqelm.set*() 7.Dequeue the alert using dbms_aq.dequeue() 8.Reveal the entire alert message using dbms_server_alert.expand_message() This is what EM does automatically!!!

Conclusion  Databases have grown in number and size  Management needs to be automated and self- healing to the extent possible  The name of the game in 10g is : AUTOMATE  Server-generated alerts provide the foundation for self-managing performance and database management

Reminder – Please complete the OracleWorld Online Session Survey. This was Paper# Thank you.

A Q & Q U E S T I O N S A N S W E R S