16 Copyright © 2004, Oracle. All rights reserved. Undo Management.

Slides:



Advertisements
Similar presentations
Rollback Segments Nilendu Misra (MAR99)
Advertisements

2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
ORACLE FLASHBACK. Flashback Flashback a nivel de base de datos Flashback a nivel de tabla Flashback a nivel de tabla borrada Flashback query Flashback.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
Basic Storage Concepts and Settings
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
1 - Oracle Server Architecture Overview
9 Copyright © 2009, Oracle. All rights reserved. Managing Data Concurrency.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Chapter 5 Data Manipulation and Transaction Control Oracle 10g: SQL
Backup and Recovery Part 1.
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Using RMAN to Perform Recovery
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
Oracle Database Administration Database files Logical database structures.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
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.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
1 Oracle Database 11g – Flashback Data Archive. 2 Data History and Retention Data retention and change control requirements are growing Regulatory oversight.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
7202ICT – Database Administration
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
7 Copyright © 2004, Oracle. All rights reserved. Recovering from Noncritical Losses.
6 Copyright © 2006, Oracle. All rights reserved. Flashback.
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.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
10 Copyright © 2004, Oracle. All rights reserved. Recovering from User Errors.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Managing Database Storage Structures.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
10 Managing Rollback Segments Objectives Planning the number and size of rollback segments Creating rollback segments using appropriate storage.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
© 2006 Northgate Information Solutions plc and its associated companies. All rights reserved. Slide 1.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
16 Copyright © 2005, Oracle. All rights reserved. Performing Database Recovery.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
11 Copyright © 2007, Oracle. All rights reserved. Using Flashback Technology.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
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 11g: SQL Chapter 5 Data Manipulation and Transaction Control.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Performing Database Recovery
Presentation transcript:

16 Copyright © 2004, Oracle. All rights reserved. Undo Management

16-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson you should be able to do the following: Monitor and administer undo Configure undo retention Guarantee undo retention Use the Undo Advisor

16-3 Copyright © 2004, Oracle. All rights reserved. Undo Data Undo data is: A copy of original, premodification, data Captured for every transaction that changes data Retained at least until the transaction is ended Used to support: –Rollback operations –Read-consistent and flashback queries –Recovery from failed transactions User

16-4 Copyright © 2004, Oracle. All rights reserved. Undo Data Full Notes Page

16-5 Copyright © 2004, Oracle. All rights reserved. Transactions and Undo Data Each transaction is assigned to only one undo segment. An undo segment can service more than one transaction at a time. Update transaction Old image New image Undo segment Table

16-6 Copyright © 2004, Oracle. All rights reserved. Storing Undo Information Undo information is stored in undo segments, which are in turn stored in an undo tablespace. Undo tablespaces: Are only used for undo segments Have special recovery considerations May only be associated with a single instance, and an instance can only have one active undo tablespace at a time

16-7 Copyright © 2004, Oracle. All rights reserved. Monitoring Undo DBA Undo usually requires little management. Areas to monitor include: Undo tablespace free space “Snapshot too old” errors

16-8 Copyright © 2004, Oracle. All rights reserved. Monitoring Undo Full Notes Page

16-9 Copyright © 2004, Oracle. All rights reserved. Administering Undo Administration of undo should include preventing: Undo tablespace space errors –Size the undo tablespace properly –Ensure large transactions commit periodically “Snapshot too old” errors –Configure an appropriate undo retention interval –Size the undo tablespace properly –Consider guaranteeing undo retention DBA UNDO_MANAGEMENT=AUTO UNDO_TABLESPACE=UNDOTBS1

16-10 Copyright © 2004, Oracle. All rights reserved. Configuring Undo Retention DBA UNDO_RETENTION=0 Undo retention specifies (in seconds) the amount of already committed undo information to retain. Default value is 0 (automatic). Maximum value is 2 32 seconds (more than 187 years). A setting of 0 indicates automatic undo retention mode.

16-11 Copyright © 2004, Oracle. All rights reserved. Configuring Undo Retention Full Notes Page

16-12 Copyright © 2004, Oracle. All rights reserved. Guaranteeing Undo Retention SQL> ALTER TABLESPACE undotbs1 RETENTION GUARANTEE; Tablespace altered. SQL> SELECT contents, retention 2 FROM dba_tablespaces 3 WHERE TABLESPACE_NAME='UNDOTBS1'; CONTENTS RETENTION UNDO GUARANTEE Committed undo information will be overwritten rather than cause transactions to fail for lack of undo space unless undo retention is “guaranteed.”

16-13 Copyright © 2004, Oracle. All rights reserved. Sizing the Undo Tablespace Undo Consumption Rate Current Tablespace Size

16-14 Copyright © 2004, Oracle. All rights reserved. Using the Undo Advisor

16-15 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson you should have learned how to: Monitor and administer undo Configure undo retention Guarantee undo retention Use the Undo Advisor

16-16 Copyright © 2004, Oracle. All rights reserved. Practice 16: Managing Undo This practice covers performing typical undo management tasks including: Calculating undo tablespace sizing to support a 48-hour retention interval Modifying undo tablespace to support a 48-hour retention interval

16-17 Copyright © 2004, Oracle. All rights reserved. Practice Lesson 16 Full Notes Page

16-18 Copyright © 2004, Oracle. All rights reserved.