Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com



Similar documents
Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database 10g: New Features for Administrators

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

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

Oracle Database 11g: SQL Tuning Workshop

Oracle Database 11g: SQL Tuning Workshop Release 2

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager. Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering

Oracle 11g Database Administration

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

Oracle Database 11g: Performance Tuning DBA Release 2

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager

ORACLE DATABASE 11G: COMPLETE

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

Oracle Enterprise Manager 13c Cloud Control

Oracle Database. 2 Day + Performance Tuning Guide 12c Release 1 (12.1) E

Oracle Enterprise Manager 12c New Capabilities for the DBA. Charlie Garry, Director, Product Management Oracle Server Technologies

Proactive Performance Monitoring Using Metric Extensions and SPA

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events

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

Real Application Testing. Fred Louis Oracle Enterprise Architect

Oracle Database 11g: New Features for Administrators

Oracle Database 11g: New Features for Administrators DBA Release 2

Proactive database performance management

Oracle Database Performance Management Best Practices Workshop. AIOUG Product Management Team Database Manageability

Oracle Database 12c: Administration Workshop NEW

Customer evaluation guide Toad for Oracle v12 Database administration

Optimizing Your Database Performance the Easy Way

How To Test For A Test On A Test Server

Oracle 11g New Features - OCP Upgrade Exam

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Maximizing Performance for Oracle Database 12c using Oracle Enterprise Manager

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

Oracle Database 11g: Administration Workshop I Release 2

Oracle Database 11g: Administration Workshop I

Oracle Database 11g: Administration Workshop I Release 2

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop I Release 2. 5 Jours [35 Heures]

Oracle DBA Course Contents

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

Oracle s SQL Performance Analyzer

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Module 15: Monitoring

Performance Tuning and Optimizing SQL Databases 2016

Oracle Database 12c: Admin, Install and Upgrade Accelerated

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

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

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

SQL diagnostic manager Management Pack for Microsoft System Center. Overview

ORACLE DBA 11G TRAINING

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

Top Down Performance Management with OEM Grid Control Or How I learned to stop worrying and love OEM Grid Control John Darrah, DBAK

Oracle Database 11g: Administration Workshop II

Oracle Database B

Oracle Architecture, Concepts & Facilities

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

SQL Server Performance Tuning and Optimization

Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.

ORACLE DATABASE 10G ENTERPRISE EDITION

Module 14: Scalability and High Availability

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database 12c Administration Workshop

Automatic Performance Diagnosis and Tuning in Oracle

<Insert Picture Here> Performance, performance, performance!!!

Inge Os Sales Consulting Manager Oracle Norway

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

Identifying Problematic SQL in Sybase ASE. Abstract. Introduction

The Complete Performance Solution for Microsoft SQL Server

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

Oracle Database 11g: Administration Workshop II DBA Release 2

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

Real-Time SQL Monitoring. December 2009

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

Oracle Database 11g Comparison Chart

Advanced Oracle SQL Tuning

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database 11g: Administration Workshop II DBA Release 2

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

Management Packs for Database

One of the database administrators

SQL Memory Management in Oracle9i

Oracle Database 11g: Administration Workshop II Release 2

Oracle Database 11g: Administration And Backup & Recover

Transaction Performance Maximizer InterMax

Performance Tuning with Oracle Enterprise Manager Session # S300610

Evidence-based Best Practices for JD Edwards EnterpriseOne

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

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

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Database Services for CERN

Lessons Learned while Pushing the Limits of SecureFile LOBs. by Jacco H. Landlust. zondag 3 maart 13

System Administration of Windchill 10.2

Transcription:

Oracle Database 10g The Self-Managing Database Benoit Dageville Oracle Corporation benoit.dageville@oracle.com Agenda Oracle10g: Oracle s first generation of self-managing database Oracle s Approach to Self-managing Oracle10g Manageability Foundation Automatic Database Diagnostic Monitor (ADDM) Self-managing Components Conclusion and Future Directions 1

Oracle10g Oracle10g Oracle10g is the latest version of the Oracle DBMS, released early 2004 One of the main focus of that release was selfmanagement Effort initiated in Oracle9i Our vision when we started this venture four years ago: make Oracle fully self-manageable We believe Oracle10g is a giant step toward this goal Oracle s Approach 2

Oracle s Approach: Server Resident Technology built inside the database server Eliminate management problems rather than hiding them behind a tool Minimize Performance Impact Act Just in Time (e.g. push versus pull) Leverage existing technology Effective solutions require complete integration with various server components server becoming so sophisticated that a tool based solution can no longer be truly effective Mandatory if the end-goal is to build a truly self-managing database server Oracle s Approach: Seamless GUI Integration Oracle s Approach: Holistic Avoid a collection of point solutions Instead, build a comprehensive solution Core manageability infrastructure Comprehensive statistics component Workload Repository Server based alerts Advisory framework Central self-diagnostic engine built into core database (Automatic Database Diagnostic Monitor or ADDM) Self-managing Components Auto Memory, Automatic Tuning, Automatic Storage, Access Advisor, Auto Undo Retention, Space Alerts, Flashback. Follow the self-managing loop: Observe, Diagnose, Resolve 3

Oracle s Approach: Out-of-box Manageability features are enabled by default Features must be very robust Minimal performance impact Outperform manual solution Self-managing solution has to be self-manageable! Zero administrative burden on DBAs Examples Statistics for manageability enabled by default Automatic performance analysis every hour Auto Memory of memory is default Optimizer statistics refreshed automatically Predefined set of server alerts (e.g. space, ) And much more.. Oracle s Approach: Manageability for All Low End Customers No dedicated administrative staff Automated day to day operations Optimal performance out of the box, no need to set configuration parameters High End Customers Flexibility to adapt product to their needs Self-management features should outperform manual tuning and ensure predictable behavior Need to understand and monitor functioning of self-management operations Help DBAs in making administrative decisions (no need for DBA to be rocket scientist!) Any workload: OLTP, DSS, mixed Oracle s Approach: Manageability Architecture Application & Storage System Resource Database Control (EM) Backup & Recovery ADDM Space Manageability Infrastructure 4

Manageability Infrastructure Application & Storage System Resource Backup & Recovery ADDM Space Manageability Infrastructure Manageability Infrastructure: Overview Advisory Infrastructure Server-generated Alert Infrastructure Automatic Maintenance Task Infrastructure Workload Statistics Subsystem Foundation for Self-managing Workload Statistics Subsystem Intelligent Statistics AWR: Data Warehouse of the Database Automatic Maintenance Tasks Pre-packaged, resource controlled Server-generated Alerts Push vs. Pull, Just-in-time, Out-of-the-box Advisory Infrastructure Integrated, uniformity, enable inter-advisor communication Statistics: Overview In memory statistics Statistic Snapshot Shared-Memory V$ Views Alerts ADDM Historical Statistics Workload Repository 5

Statistics: Classes Database Time Model Understand where database time is spent Sampled Database Activity Root cause analysis What-if Self managing resource (e.g. memory) Metrics and Metric History Trend analysis, Capacity planning Server alerts (threshold based), Monitoring (EM) Base Statistics Resource (IO, Memory, CPU), OS,, Database Objects, Statistics: Database Time Model Database Time Java Exec Compilation Connection Mgmt Concurrency Cluster PL Exec Application Exec User I/O Drill-down: Session, System,, Service/Module/Action, Client ID Operation Centric Connection Compilation, PL and Java execution times Resource Centric Hardware: CPU, IO, Memory Software: Protected by locks (e.g. db buffers, redo-logs) Statistics: Sampled Database Activity In-memory log of key attributes of database sessions activity Use high-frequency time-based sampling (1s) Done internally, direct access to kernel structures Data captured includes: Session ID (SID) ( ID) Transaction ID Program, Module, Action Wait Information (if any) Operation Type (IO, database lock, ) Target (e.g. Object, File, Block) Time Fine Grained History of Database Activity 6

Statistics: Sampled Database Activity Query for Melanie Craft Novels Browse and Read Reviews Add item to cart Checkout using one-click SID=213 DB Time V$ACTIVE_SESSION_HISTORY Time SID Module ID State Wait 7:38:26 213 Book by author qa324jffritcf WAITING Block read 7:38:31 213 Get review id aferv5desfzs5 CPU 7:38:35 213 Add to cart hk32pekfcbdfr WAITING Busy Buffer Wait 7:38:37 213 One click abngldf95f4de WAITING Log Sync Statistics: What-if (Overview) Predict performance impact of changes in amount of memory allotted to a component, both decrease and increase. Highly accurate, maintained automatically by each memory component based on workload. Use to diagnose under memory configuration (ADDM). Use to decide when to transfer memory between shared-memory pools (Auto Memory ). Not limited to memory (e.g. use to compute auto value of MTTR) Produced by Buffer cache Shared pool - integrated cache for both database object metadata and statements Java cache for class metadata memory management - private memory use for sort, hash-joins, bitmap operators Statistics: What-if (Example) V$DB_CACHE_ADVICE Reducing buffer cache size to 10MB increases IOs by a 2.5 factor Increase buffer cache size to 50MB will reduce IOs by 20% 7

Base Statistics e.g. Maintained by the Oracle cursor cache id unique text signature Time model break-down Sampled bind values Query Execution Plan Fine-grain Execution Statistics (iterator level) Efficient top identification using Δs AWR: Automatic Workload Repository Self-Managing Repository of Database Workload Statistics Periodic snapshots of in-memory statistics stored in database Coordinated data collection across cluster nodes Automatically purge old data using time-based partitioned tables Out-Of-The-Box: 7 days of data, 1-hour snapshots Content and Services Time model, Sampled DB Activity, Top, Top objects, Tuning Sets to manage Workloads Consumers ADDM, Database Advisors ( Tuning, Space, ),... Historical performance analysis Automatic Database Diagnostic Monitor (ADDM) Application & Storage System Resource Backup & Recovery ADDM Space Manageability Infrastructure 8

ADDM: Motivation Problem: Performance tuning requires high-expertise and is most time consuming task Performance and Workload Data Capture System Statistics, Wait Information, Statistics, etc. Analysis What types of operations database is spending most time on? Which resources is the database bottlenecked on? What is causing these bottlenecks? What can be done to resolve the problem? Problem Resolution If multiple problems identified, which is most critical? How much performance gain I expect if I implement this solution? ADDM: Overview Diagnose component of the system wide self-managing loop and the entry point of the resolve phase Central Engine Integrate all components together Holistic time based analysis Throughput centric top-down approach Distinguish symptoms from causes (i.e root cause analysis) Runs proactively out of the box (once every hour) Result of each analysis is kept in the workload repository Can be used reactively when required ADDM is the system-wide optimizer of the database How Does ADDM Work? High-load Snapshots in Automatic Workload Repository Automatic Self-Diagnostic Diagnostic Engine Engine IO / CPU issues RAC issues Top Down Analysis Using AWR Snapshots Classification Tree - based on decades of Oracle tuning expertise Identifies main performance bottlenecks using time based analysis Pinpoints root cause Recommend solutions or next step Reports non-problem areas E.g. I/O is not a problem Advisor System Resource Advice Network + DB config Advice 9

ADDM: Methodology Problem classification system Decision tree based on the Wait Model and Time Model Cluster Buffer Busy Wait Model Concurrency Parse Latches User I/O Buf Cache latches Symptoms Root Causes ADDM: Taxonomy of Findings Hardware Resource Issues CPU (capacity, top-sql, ) IOs (capacity, top-sql, top-objects, undersized memory cache) Cluster Interconnect Memory (OS paging) Software Resource Issues Application locks Internal contention (e.g. access to db buffers) Database Configuration Application Issues Connection management Cursor management (parsing, fetching, ) ADDM: Real-world Example Reported by Qualcomm when upgrading to Oracle10g After upgrading, Qualcomm noticed severe performance degradation Looked at last ADDM report ADDM was reporting high-cpu consumption and identified the root cause: a statement ADDM recommendation was to tune this statement using Automatic tuning Automatic tuning identified missing index. The index was created and performance issue was solved In this particular case, index was dropped by accident during the upgrade process! 10

Self-managing Components Application & Storage System Resource Backup & Recovery ADDM Space Manageability Infrastructure Self-managing Components Performance (ADDM) Administration Memory Space Auto Storage Resource Manager Backup/ Recovery Server Alerts Auto Tuning Access Advisor Auto Stat Collect Auto Managed (Private - ) Auto Managed (Shared - Pools) Undo Advisor Segment Advisor RMAN Flashback Auto MTTR Automatic Memory Shared Memory Automatically size various shared memory pools (e.g. buffer pool, shared pool, java pool) Use what-if statistics maintain by each component to trade off memory Memory is transferred where most needed Private Memory (VLDB 2002) Determine how much memory each running operator should get such that system throughput is maximized Global memory broker: compute ideal value based on memory requirement published by active operators Adaptive Operators: can dynamically adapt their memory consumption in response to broker instructions No need to configure any parameter except for the overall memory size (remove many parameters) 11

Automatic Shared-Memory : Tuning Pool Sizes Buffer Cache Buffer Cache Shared Pool Java Pool Shared Pool Java Pool Process Reconfigure Automatic Memory Manager Automatic Tuning: Concept Automatic Tuning Create a Profile Workload High-Load Profiling Access Path Analysis Structure Analysis Gather Missing or Stale Stats Add Missing Indexes DBA Modify Constructs ADDM Tune Advisor Automatic Tuning: Overview Performed by the Oracle query optimizer running in tuning mode Uses same plan generation process but performs additional steps that require lot more time Optimizer uses this extra time to Profile the statement Validate data statistics and its own estimate using dynamic sampling and partial executions Look at past executions to determine best optimizer settings Optimizer corrections and settings are stored in a new database object, named a Profile Explore plans which are outside its regular search space Ÿ To investigate the use of new access structures (i.e. indexes) Ÿ To investigate how restructuring would improve the plan 12

Automatic Tuning: Profiling Profiling Tuning Advisor After submit Optimizer (Tuning Mode) create use Profile Database Users submit Optimizer (Normal Mode) output Well-Tuned Plan Persistent: works across shutdowns and upgrades profiling ideal for packaged applications (no change to text) Profiling: Performance Evaluation Using 73 high-load queries from GFK, a market analysis company located in Germany Before After Time (s) 10000 Time (s) 1000 1000 100 100 10 10 1 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 Queries 1 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 Queries Automatic Tuning: What-if Analysis Schema changes: invokes access advisor Comprehensive index solutions (b-tree, bitmap, functional) Materialized views recommendations maximizing query rewrite while minimizing maintenance cost Any combination of the above two (e.g. new MV with an index on it) Consider the entire workload Structure Analysis Help apps developers to identify badly written statements Suggest restructuring for efficiency by analyzing execution plan Solution requires changes in semantic different from optimizer automatic rewrite and transformation Problem category Semantic changes of operators (NOT IN versus NOT EXISTS) Syntactic change to predicates on index column (e.g. remove type mismatch to enable index usage) design (add missing join predicates) 13

Conclusion & Future Directions Oracle10g major milestone in the Oracle s manageability quest Manageability foundation Holistic Control (ADDM) Self-manageable components Future Oracle11g: find an EVE for ADDM? Even more self-manageable by fully automating the resolve phase More Information? Industrial Session 4 11:00-12:30 http://www.oracle.com/technology/products/manageability /database/index.html 14