Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation.

Slides:



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

9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
The Self-managing Database: Automatic Performance Diagnosis Graham Wood Kyle Hailey Oracle Corporation Session id:
Harvard University Oracle Database Administration Session 2 System Level.
10 Copyright © 2006, Oracle. All rights reserved. Automatic Shared Memory Management.
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
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.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
The Self-Managing Database : Automatic Health Monitoring and Alerting Daniela Hansell & Gaja Krishna Vaidyanatha Product Managers, Server Technologies,
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.
Database Administration TableSpace & Data File Management
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.
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:
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
Oracle Database 10 g Time Navigation: Human-Error Correction Magnus Lubeck DBA/Systems Analyst CERN, IT-DB Group Session id: Tammy Bednar Sr. Product.
The Self-Managing Database: Automatic SGA Memory Management Tirthankar Lahiri Senior Manager, Distributed Cache & Memory Management Oracle Corporation.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
ASM General Architecture
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.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Enterprise Manager: Scalable Oracle Management John Kennedy System Management Products, Server Technologies, Oracle Corporation Session id:XXXXX.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
Managing Storage.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
OUGF 15v Juhlaseminaari Marko Hotti Product Manager, Oracle10g Oracle Finland Oy.
SQL Database Management
Data, Space and Transaction Processing
How To Pass Oracle 1z0-060 Exam In First Attempt?
Steven George Sr. Delivery Manager
Introduction.
Proactive Maintenance
How to Thrive as a DBA in an Oracle10g World
Index Index.
Performing Database Recovery
Presentation transcript:

Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation

Oracle Database 10 g : Managing the Self- Managing Database

Objectives Understanding the self-management capabilities of Oracle Database 10 g Customizing the self-management capabilities of Oracle Database 10 g

Manageability Goal Automatic versus Manual Intelligence versus Data ½ Cost Adaptive versus Oversized Integrated versus Third Party Preventive versus Corrective Act and Succeed versus Trial and Error Reduce Administration Cost Reduce Capital Expenditure Reduce Failure Cost

How DBAs Spend Their Time Load Data 6% Maintain Software 6% Install 6% Create and Configure 12% Manage Database System 55%

Database Management Challenges Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management ?????

Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Manageability Infrastructure Automatic Management Enterprise Manager Database Console

Common Manageability Infrastructure: Automatic Workload Repository Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Data Warehouse of the Database Automatic collection of important statistics Direct memory access AutomaticProactive Efficient

Automatic Workload Repository SGA In-memory statistics AWR Statistics ASH SYSAUX MMON 7:00 a.m. 7:30 a.m. 8:00 a.m. WR Schema Snapshot 1 Snapshot 2 Snapshot 3 Snapshot 4 8:30 a.m. 8:30am ADDM finds top problems BG … FG … DBA Seven days

Statistics Level STATISTICS_LEVEL BASICTYPICALALL Recommended default value Additional statistics for manual SQL diagnostics Turn off all self-tuning capabilities

Configuring The Workload Repository

Manually Creating Snapshots

Database Feature Usage Metric Collection MMON DB Feature Usage Statistics DB High-Water Mark Statistics Advanced Replication, Oracle Streams, AQ, Virtual Private Database, Audit options, … size of largest segment, maximum number of sessions, maximum number of tables, maximum size of the database, maximum number of data files, … DBA_FEATURE_USAGE_STATISTICSDBA_HIGH_WATER_MARK_STATISTICS Oracle Database 10g AWR HOST CONFIGURATION INFO EM Repository: ECM EM Console Once a week

Common Manageability Infrastructure: Server Alerts Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Enabled by default Timely generation Push model AutomaticProactive Efficient

Server Alerts Oracle Server (SGA) Server Alerts Queue Enterprise Manager Server monitors itself MMON AWR Automatic Notification Guided Resolution

Server Alerts Delivery Process Advanced Queue Queue Subscribing Clients FG BG Push Third Party Console Update Page or DBAs EM (EMD)

Alert Server-Generated Alert Types MMON 85% Warning 97% CriticalAlertCleared Threshold Alerts Non- Threshold Alerts Metric-Based Event-Based Alert Snapshot Too Old Resumable Session Suspended Recovery Area Low On Free Space

Out-of-the-box Alerts Resumable Session Suspended Snapshot Too Old Recovery Area Low On Free Space Tablespace 85% Warning 97% Critical Tablespace Space Usage Locally Managed

EM Interface to Alerts

Setting Alert Thresholds

Common Manageability Infrastructure: Automated Tasks Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Pre-packaged routine maintenance tasks Resource usage controlled Statistics collection task scheduled out-of-the-box AutomaticProactive Efficient

Automatic Optimizer Statistics Collection Automatic statistics collection DBA tracks and gathers statistics Resolves two issues Targets right objects Determines right samples

Gather Statistics Job AUTO_TASKS_JOB_CLASS AUTO_TASKS_CONSUMER_GROUP gather_stats_job WEEKNIGHT_WINDOW 10pm–6am Mon to Fri MAINTENANCE_WINDOW_GROUP WEEKEND_WINDOW 12am Sat to 12am Mon

Adding New Tasks Using EM

D E M O N S T R A T I O N Creating Automated Tasks

Common Manageability Infrastructure: Advisory Framework Automatic Workload Repository Server Alerts Automated Tasks Advisory Framework Uniform interfaceFully integrated AutomaticProactive Efficient

Advisory Framework ADDM SQL Tuning Access Memory Space PGA SGA Segment Advisor Undo Buffer Cache Shared Pool Seamless integration AWR Common data source

Guided Tuning Session Create an advisor task Adjust task parameters Accept results? Implement recommendations YesNo Perform analysis Enterprise Manager Database Console

Advisory Central

Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console

Performance Monitoring Solutions Snapshots ADDM ADDM Results MMON Alerts In-memory statistics AWR SGA Reactive Monitoring Proactive Monitoring within Oracle Server DBA

ADDM Performance Monitoring Snapshots ADDM MMON In-memory statistics AWR SGA ADDM Results EM 30 minutes ADDM Results

System Wait RAC Waits IO Waits Concurrency Buffer Busy Parse Latches Buf Cache latches Root CausesSymptoms ADDM Problem Classification System … … … … … … … … Non-problem areas

Accessing ADDM Advice

ADDM Recommendations

Performance Monitoring Solutions Snapshots ADDM ADDM Results MMON Alerts In-memory statistics AWR SGA Reactive Monitoring Proactive Monitoring within Oracle Server DBA

Performance Management Approach CPU/Waits SQLSessions Host Oracle CPU BottlenecksMemory Bottlenecks Uses ASH and AWR

EM Product Layout Enterprise-wide Console Page Target Databases Page Database Home Page Database Performance Page Drilldowns SQLSession

Database Performance Page

Concurrency Wait Class: Drill Down

Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console

Automate the SQL Tuning Process DBA ADDM SQL Tuning Advisor High-load SQL SQL Workload I can do it for you!

SQL Tuning Advisor Overview Add Missing Index Run Access Advisor Restructure SQL Plan Tuning (SQL Profile) Automatic Tuning Optimizer SQL Analysis Optimization Mode Access Analysis Optimization Mode Plan Tuning Optimization Mode Statistics Check Optimization Mode Detect Stale or Missing Statistics Comprehensive SQL Tuning SQL Tuning Advisor

Plan Tuning Flow Optimizer (Tuning Mode) create submit output SQL Profile Database Users Well-Tuned Plan SQL Tuning Advisor use No application code change Optimizer (Normal Mode)

SQL Tuning Advisor Usage Model SQL Tuning Advisor ADDMHigh-load SQL Cursor Cache STS Custom Filter/Rank Sources Manual Selection Automatic Selection AWR DBA AWR

D E M O N S T R A T I O N Resolving Performance Problems

Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console System Resource Management

Overview of Automatic Shared Memory Management Java Pool Database Buffer Cache Redo Log Buffer Shared Pool Large Pool SGA Fixed SGA Automatically set the optimal size MMAN

Benefits of Automatic Shared Memory Management DB_CACHE_SIZE SHARED_POOL_SIZE LARGE_POOL_SIZE JAVA_POOL_SIZE Total SGA size SGA_TARGET

Using EM to Configure Automatic Shared Memory Management

D E M O N S T R A T I O N Automating Memory Management

Solution: Self-Managing Database Application and SQL Management Storage Management Backup and Recovery Management System Resource Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console Space Management

Data Segment Shrink Overview HWM Shrink Operation Data Unused Space Reclaimed Space Online and in-place Data

How Can I Shrink Segments? ALTER TABLE employees SHRINK SPACE CASCADE; ALTER … SHRINK SPACE [CASCADE] TABLEINDEXMATERIALIZED VIEWMATERIALIZED VIEW LOG MODIFY PARTITIONMODIFY LOB ALTER TABLE employees ENABLE ROW MOVEMENT; 1 2 MODIFY SUBPARTITION

Segment Advisor

Growth Trend Report

D E M O N S T R A T I O N Proactively Managing Space

Segment Resource Estimation

Automatic Undo Retention Tuning Proactive tuning –Undo retention is tuned for longest-running query. –Query duration information is collected every 30 seconds. Reactive tuning –Undo retention is gradually lowered under space pressure. –Oldest unexpired extents are used first. Enabled by default

D E M O N S T R A T I O N Using Automatic Undo Retention Tuning

Undo Advisor

Redo Logfile Size Advisor

Solution: Self-Managing Database Application and SQL Management Storage Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console Backup and Recovery Management

Automatic Backup (DBCA Setup)

Optimized Incremental Backup Optimizes incremental backups Tracks which blocks have changed since last backup Oracle Database 10g has integrated change tracking. New Change Tracking File is introduced. Changed blocks are tracked as redo is generated. Database backup automatically uses changed block list. List of Changed Blocks Redo Generation Redo Log Change Tracking File SGA

Defining Flash Recovery Area

Flash Recovery Area Space Management Disk limit is reached and a new file needs to be written into the Recovery Area. 1 2 Backup files to be deleted Database file backup Warning is issued to user. Recovery Area Space pressure occurs. RMAN updates list of files that may be deleted. Oracle deletes files that are no longer required on disk.

Suggested Strategy

Flashback Error Correction Flashback Database –Restore database to time –Uses flashback logs Flashback Drop –Restore dropped table –Uses recycle bin Flashback Table –Restore all rows in table to time –Uses UNDO in database Flashback Transaction Query –Query a committed Txn Flashback Versions Query –Query changes to rows over time Order Order Line Database Customer

Solution: Self-Managing Database Application and SQL Management Backup and Recovery Management System Resource Management Space Management FixAdvise AlertMonitor Common Infrastructure Automatic Management Enterprise Manager Database Console Storage Management

What Is Automatic Storage Management Database Tablespace Segment Extent ASM manages Oracle files. ASM solves management problems of Oracle databases. ASM does not replace existing concepts.

Hierarchy Tablespace Segment Extent Oracle block Data file Physical block ASM disk group ASM disk ASM file Allocation unit File system file or raw device Database Or

ASM Benefits Reduces administration complexity Reduces the cost of managing storage Supports RAC Improves performance, scalability, and reliability

ASM General Architecture ASM Instance SID=ant ASM Instance SID=bee ASM Disks ASM Diskgroup TomASM Diskgroup DickASM Diskgroup Harry DB Instance SID= sales DB Instance SID= sales OSMB FG Node2 Node1 Group Services tom=ant dick=ant Group Services harry=bee DBW 0 OSMB RBAL ORB 0 ORB n … ORB 0 ORB n … OSMB RBAL DB Instance SID=test DB Instance SID=test

ASM Files Database file ASM file automatically spread inside disk group dgroupA CREATE TABLESPACE sample DATAFILE '+dgroupA'; Automatic ASM file creation

SQL Statements Issued to ASM Instances ASM Instance CREATE DISKGROUP ALTER DISKGROUPDROP DISKGROUP ALTER SYSTEM RESTRICTED SESSION

Enterprise Manager and ASM

D E M O N S T R A T I O N Using Automatic Storage Management

How Oracle Database 10 g DBAs Spend Their Time Load Data 3% Maintain Software 3% Install 3% Create and Configure 6% Manage Database System 25% Proactive and Strategic Planning 50+%

Summary Oracle Database 10 g ’s self-management capabilities work out-of-the-box. Customization of Oracle Database 10 g ’s self-management capabilities can be done through Enterprise Manager. Oracle Database 10 g is a self-managing database which reduces administration overhead and enables DBAs to become proactive strategists.

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

Reminder – please complete the OracleWorld online session survey Thank you.