The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation.

Slides:



Advertisements
Similar presentations
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Advertisements

Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Chris Ruel * Image used without permission.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
13 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Storage.
Oracle Architecture. Instances and Databases (1/2)
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
IBM Software Group ® Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
The Self-managing Database: Automatic Performance Diagnosis Graham Wood Kyle Hailey Oracle Corporation Session id:
Steven George Sr. Delivery Manager Mark Fuller Sr. Pr. Instructor Rick Pandya Pr. Instructor JF Verrier Pr. Curriculum Developer Oracle Corporation.
Oracle Database 10g : The Self-Managing Database Richard Sarwal Vice President Oracle Corporation Session id:
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
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.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
13 Copyright © 2006, Oracle. All rights reserved. Tuning PGA and Temporary Space.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
16 Copyright © 2004, Oracle. All rights reserved. Undo Management.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
The Self-Managing Database: Automatic SGA Memory Management Tirthankar Lahiri Senior Manager, Distributed Cache & Memory Management Oracle Corporation.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
14 Copyright © 2006, Oracle. All rights reserved. Tuning Block Space Usage.
Oracle 9i Release 2, A new set of tips, tricks and Techniques. Steve George Sr. Delivery Manager – Oracle University Oracle Corporation Session id: #32681.
Week 4 Lecture 2 Advanced Table Management. Learning Objectives  Create tables with large object (LOB) columns and tables that are index-organized 
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Managing Rollback Segments Objectives Planning the number and size of rollback segments Creating rollback segments using appropriate storage.
Managing Schema Objects
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Session id: Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
Managing Storage.
Physical Database Structure .
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Smarter Technology for Better Business
Data, Space and Transaction Processing
Table spaces.
Database structure and space Management
Designing Database Solutions for SQL Server
Proactive Maintenance
Physical Database Structure .
How to Thrive as a DBA in an Oracle10g World
Index Index.
Database hidden disasters…
Presentation transcript:

The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation Session id: 40170

Agenda  Proactive Space Management – Alerts – Size estimation and growth trending – Segment Advisor and Shrink  Proactive Undo Management – Alerts – Auto-sizing – Auto-tuning

Automatic Space Management Oracle9i  No external space fragmentations – Locally Managed Tablespace  No space allocation contention – Automatic Segment Space Management  No Rollback Segments – Automatic Undo Management Intelligent Infrastructure Application & SQL Management System Resource Management Space Management Backup & Recovery Management Storage Management Database Management

Intelligent Infrastructure Application & SQL Management System Resource Management Space Management Backup & Recovery Management Storage Management Database Control Database Management Oracle Database 10g – Self-Managing Database

10g: Always working for you  Collectscontinuously  Records periodically to disk  Learns from historical data  Adapts to changing workload  AlertsDBA when problems occur  Advises proactively on problems  Integratedwith the Enterprise Manager

Proactive Space Management

Proactive Space Management in 10g Growth Trending Size Estimation $$ Segment Advisor Planning Tablespace Alerts Operations Actions Shrink Add file Re-org/ rebuild Resumable

Object Size Estimation

Tablespace Alerts  Database Generated  Warning, Critical  Out of the box  Tablespaces can be provisioned with more disk space before out-of-space conditions occur

Tablespace Thresholds 85% Warning 97% Critical Alert Add files Freeing up space 97% Critical 85% Warning Locally Managed Tablespace Add Files Free up space Resolve Space Problem

Alert Computation  Read only/Offline tablespaces: Do not setup alerts  Temporary tablespace: Threshold corresponds to space currently used by sessions.  Undo tablespace: Threshold corresponds to space used by active and unexpired extents.  AUTOEXTENSIBLE files: Threshold is based on the maximum file size. MMON 85% Warning 97% Critical Check every 10 mns Alert Cleared In-Memory Calculation

Threshold Alert Tracking

Setting Thresholds Using EM  Changing database default thresholds  Changing a particular tablespace thresholds – Directly in the context of the tablespace – From the Edit Metric Thresholds page

Tablespace Threshold Page

Receiving Alerts in EM

Growth Trend Report  Based on Automatic Workload Repository Data  Indicates past growth trend and predicts future growth pattern

Growth Trend Report

Segment Advisor  Determines whether an object is a good candidate for a shrink operation – Based on unused space that can be released – Considers estimated future space requirements  EM allows you to apply the recommended shrink  Can be invoked at the segment or tablespace level

Segment Shrink HWM Shrink Operation Data Unused Space Reclaimed Space Online and In-place ShrinkOperation

Benefits Shrunk Segment Faster access Better space utilization Online & In-place

Candidate Segments Auto Segment Space Managed Tablespace Tables IOTs Materialized Views LOBs Indexes Row Movement Enabled

Dependency Maintenance DBA Shrink Index Table Trigger Triggers are not fired Indexes are maintained Shrink

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

How Does it Work? HWM ALTER TABLE employees SHRINK SPACE COMPACT; HWM ALTER TABLE employees SHRINK SPACE; 1 2

EM Interface

Space Management : Before and Now Before  Check to see which objects in the tablespace have pockets of wasted space due to deletion: 1.Create a script that looks at DBA_TABLES view to compare the total space allocated for each object (BLOCKS * DB_BLOCK_SIZE) in a tablespace to the estimated space used by the object (AVG_ROW_LEN * NUM_ROWS) (assumes objects have been analyzed) 2.Review script output and identify target objects for reorganization 3. Identify/Create “scratch” tablespace 4. For each object to be reorganized, use the Enterprise Manager Reorg wizard to recreate each object along with its dependencies Oracle10 G 1.Launch Segment Advisor to advise on which object(s) to shrink 2.Accept the recommendations to shrink the objects online and in-place Scenario: Reclaim Wasted Space

Proactive Undo Management

Oracle Database 10g  Auto-sizing Undo Tablespace  Auto-tuning Undo Retention  Proactive Monitoring  Undo Advisor

Auto-sizing Undo Tablespace  A self-learning system – Create Undo tablespace with autoextensible files – Run your workload – Done! (undo tablespace size adapts to the application)

Auto-tuning Undo Retention OLTP DSS Before Oracle 10g: Auto-tuning Small RBS/ UR = 15 min Large RBS/ UR = 5 hrs

Proactive Monitoring: Alerts  Out of Undo Space Alert  Long query warning Alert Out of space Warning Out of space Critical 7:00am7:107:207:307:40 … ORA-1555 Failure

Undo Advisor Automatically analyzes the undo usage to advice optimal: – Undo tablespace size to support your longest running query – Undo tablespace size for a given undo retention period to support Undo based Flashback toolset

Undo Home: Automatic Advice

Undo Advisor: What if?

Summary  Self-management engineered into the core of Oracle Database 10g  Self-management through: – Auto-sizing and size estimation – Built-in statistics gathering – Server-driven Alerts – Automatic Advisers – Auto-tuning to adapt to changing workload – Integration with the Enterprise Manager

Next Steps….  Recommended sessions – The Self-Managing Database : Automatic Health Monitoring (Thursday, Sept. 11, 11 AM) – Enterprise Manager : Scalable Oracle Management (Thursday, Sept. 11, 1 PM)  Recommended demos and/or hands-on labs – Oracle Database 10g : Manage the Oracle Environment Hands-On Lab – Campground Demo : “The Self-Managing Database: Space Management”  Relevant web sites to visit for more information – ent.html

Reminder: Please complete the OracleWorld online session survey Session # Thank you.

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