Oracle Database 10g: New Manageability Features Student Guide D17030GC10 Edition 1.0 September 2003 D38639
Author Lex de Haan Technical Contributors and Reviewers Jean-Francois Verrier Christine Jeal Martin Jensen Harald van Breederode Joel Goodman Stefan Lindblad Tamas Kerepes Editor Richard Wallis Publisher Kekoa Lavatai Copyright 2003, Oracle. All rights reserved. This documentation contains proprietary information of Oracle Corporation. It is provided under a license agreement containing restrictions on use and disclosure and is also protected by copyright law. Reverse engineering of the software is prohibited. If this documentation is delivered to a U.S. Government Agency of the Department of Defense, then it is delivered with Restricted Rights and the following legend is applicable: Restricted Rights Legend Use, duplication or disclosure by the Government is subject to restrictions for commercial computer software and shall be deemed to be Restricted Rights software under Federal law, as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013, Rights in Technical Data and Computer Software (October 1988). This material or any portion of it may not be copied in any form or by any means without the express prior written permission of Oracle Corporation. Any other copying is a violation of copyright law and may result in civil and/or criminal penalties. If this documentation is delivered to a U.S. Government Agency not within the Department of Defense, then it is delivered with Restricted Rights, as defined in FAR 52.227-14, Rights in Data-General, including Alternate III (June 1987). The information in this document is subject to change without notice. If you find any problems in the documentation, please report them in writing to Education Products, Oracle Corporation, 500 Oracle Parkway, Redwood Shores, CA 94065. Oracle Corporation does not warrant that this document is error-free. Oracle and all references to Oracle Products are trademarks or registered trademarks of Oracle Corporation. All other products or company names are used for identification purposes only, and may be trademarks of their respective owners.
Contents Introduction Overview I-2 Today s IT Infrastructure I-3 Grid Computing I-4 Oracle 10g Grid Infrastructure I-5 Solving IT Problems I-6 Oracle Database 10g Main Focus Areas I-7 Enterprise Manager I-8 Complete Database Administration I-9 Seminar Overview I-10 Other Sources of Information I-11 1 Common Manageability Infrastructure Objectives 1-2 Manageability Architecture 1-3 Common Manageability Infrastructure 1-4 Automatic Workload Repository (AWR) 1-5 AWR In-Memory Statistics 1-7 Active Session History (ASH) 1-8 Base Statistics and Metrics 1-9 AWR Snapshots 1-10 Statistics Levels 1-11 AWR Snapshot Baselines 1-12 AWR Snapshot Purging Policy 1-13 AWR Report Generation 1-14 Database Feature Usage: Statistics Collection 1-15 Server Generated Alerts 1-16 Server Alert Models 1-17 Server Alert Types 1-18 EM Usage Model 1-19 Metrics and Alerts: Views 1-20 Threshold Settings: PL/SQL Interface 1-21 Alert Consumption: Manual Configuration 1-22 Automated Tasks 1-23 The DBMS_SCHEDULER Package 1-24 Gather Statistics Job 1-25 Advisory Framework 1-26 Advisor Attributes 1-27 Typical Tuning Session 1-28 ADDM: Performance Monitoring 1-29 ADDM Problem Classification System 1-31 Invoke ADDM Using PL/SQL 1-32 Summary 1-33 iii
2 Storage Enhancements Objectives 2-2 SYSAUX Tablespace Overview 2-3 SYSAUX and Database Creation 2-4 SYSAUX and Database Upgrade 2-5 SYSAUX Occupants Relocation 2-6 Automatic Storage Management (ASM) 2-7 ASM Benefits 2-8 ASM Architecture 2-9 ASM Hierarchy 2-10 ASM Disk Groups and Failure Groups 2-11 ASM Disks and Files 2-12 ASM File Names 2-13 ASM Instance Management 2-14 Temporary Tablespace Groups 2-15 Temporary Tablespace Group Examples 2-16 Rename Tablespaces 2-17 Default Permanent Tablespace 2-18 Bigfile Tablespaces (BFT) 2-19 ROWID Formats and BFTs 2-20 BFT: SQL Syntax Changes 2-21 Transportable Tablespaces 2-22 Datafile Conversion Example 2-23 Summary 2-24 3 Space Management Objectives 3-2 Proactive Tablespace Monitoring 3-3 Tablespace Space Usage Monitoring 3-4 Tablespace Threshold Validation 3-5 Setting Thresholds Using Enterprise Manager (EM) 3-6 Tablespace Threshold Alert Tracking 3-7 Segment Shrink Overview 3-8 How to Shrink Segments 3-10 Segment Advisor 3-11 Growth Trend Report 3-12 Space Usage Recording and Reporting 3-13 New Segment Resource Estimation 3-14 Automatic Undo Management (AUM) Enhancements 3-15 Automatic Undo Retention Tuning 3-16 Undo Advisor 3-17 Automatic Undo Space Usage Analysis 3-18 Proactive Undo Tablespace Monitoring 3-19 iv
Fast Ramp-Up 3-20 Deprecated Initialization Parameters 3-21 Resumable Space Allocation 3-22 Redo Logfile Size Advisor 3-23 Summary 3-24 4 Other Manageability Enhancements Objectives 4-2 Data Pump Introduction 4-3 Data Pump Architecture 4-4 Data Pump Export and Import 4-6 Data Pump Export and Import Benefits 4-7 Data Pump Implementation 4-8 Data Pump Data Access Methods 4-10 Data Pump Data Dictionary Views 4-11 Data Pump Interfaces 4-12 Parallel Full Export and Import: Example 4-13 Limited Schema Export: Example 4-14 Limited Tablespace Export: Example 4-15 Network Mode Import: Example 4-16 Attaching To Existing Job: Example 4-17 Restarting Stopped Job: Example 4-18 External Table Enhancements 4-19 Data Unloading: Example 4-20 Projected Columns 4-21 Automatic Shared Memory Management 4-22 Behavior of Auto-Tuned SGA Parameters 4-24 Manually Sized SGA Components 4-25 Resizing SGA_TARGET 4-26 Disable Automatic Shared Memory Management 4-27 Summary 4-28 5 Human Error Correction Objectives 5-2 Flashback Versions Query 5-3 Flashback Versions Pseudocolumns 5-4 Guaranteed Undo Retention 5-5 New SQL Conversion Functions 5-6 Flashback Transaction Query 5-7 Using Flashback Versions and Transaction Query 5-8 Flashback Table 5-9 Flashback Table: Error Messages 5-10 Flashback Drop Feature 5-12 v
Querying the Recycle Bin 5-14 PURGE Command: Syntax 5-15 DROP and FLASHBACK Commands: Syntax 5-16 Flashback Database 5-17 Architectural Components 5-19 Defining a Flash Recovery Area 5-20 Configuring Flashback Database 5-21 Monitoring Flashback Database 5-22 Flashback Database: Examples 5-23 Errors During Flashback Database 5-24 Excluding Tablespaces From Flashback Database 5-25 Granting Flashback Privileges 5-26 Summary 5-27 vi