Chinaunix首页 | 论坛 | 博客
  • 博客访问: 970339
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类: Oracle

2009-02-03 19:12:56

■Undo Segment
Purpose:Transaction rollback,Transaction recovery,Read consistancy;
 
■Types of Undo Segments
・System
・Non-System: auto mode;Manual mode
・Deffered
■auto Undo Management
・Configure two parameters in the initialization file:
UNDO_MANAGEMENT =AUTO
UNDO_TABLESPACE  = undo1
・Create at least one Undo tablespace
SQL>
CREATE DATABASE db1
...
UNDO TABLESPACE undo1
DATAFILE '////'SIZE 20m
AUTOEXTEND ON
SQL>select tablespace_name,contents from dba_tablesapces;
SQL>show parameter undo
SQL>alter system set undo_tablespace=myundotbs;
SQL>alter system set undo_retention=900 scope =both;
 
UNDO_SUPPRESS_ERRORS
UNDO_RETENTION ※ controls the amount of undo data to retain for consistent read;
SQL>show parameter undo
 
■Obtaining Undo Segment Information
DBA_ROLLBACK_SEGS
V$ROLLNAME
V$ROLLSTAT
v$undostat
V$SESSION
v$Transaction
 
 
阅读(611) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~