Sie sind auf Seite 1von 1

What is an Undo Segment

Undo Segments: Purpose

Transactionrecovery
Read consistency
Transaction rollback

Managing Undo Data


Manual
Auto
UNDO_MANAGEMENT
UNDO_TABLESPACE
UNDO_RETENTION

CREATE UNDO TABLESPACE undo1


DATAFILE �/u01/oradata/undo1db01.dbf�
SIZE 20M;

CREATE DATABASE db01


. . .
UNDO TABLESPACE undo1
DATAFILE �/u01/oradata/undoldb01.dbf� SIZE 20M
AUTOEXTEND ON

Altering an UNDO Tablespace

Undo segments are created with the naming convention:


_SYSSMUn$

Switching UNDO Tablespaces


ALTER SYSTEM SET UNDO_TABLESPACE=UNDOTBS2;
DROP TABLESPACE UNDOTBS2;

SELECT end_time,begin_time,undoblks
FROM v$undostat;

Das könnte Ihnen auch gefallen