码迷,mamicode.com
首页 > 其他好文 > 详细

day05

时间:2016-05-27 09:28:58      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:

undo 表空间管理

只要修改了数据块,oracle 数据库就会将修改前的数据保留下来,保存在undo segment 里,undo segment 保存在undo表空间里。

两种Undo的管理方式

manual undo management  MUM

automatic Undo management  AUM

undo 的三大作用:提供一致性读 consistent read 、回滚事务 rollback Transaction  、实例恢复 instance recovery

CR块 consistent Read

AUM 的配置

在AUM 下只需要创建undo 表空间,并指定初始化参数,该参数说明数据库当前使用哪个undo 表空间,剩下的工作由数据库自动完成。

show parameter undo_nanagment

创建undo 表空间

create undo tablespace undonew datafile ‘‘ size 10m autoextend on;

alter system set undo_tablespace=‘undonew‘

undo_relation 四个状态

extent active inactive free

管理undo 表空间

alter tablespace undonew add datafile ‘‘ size 10m autoextend on;

 

day05

标签:

原文地址:http://www.cnblogs.com/jidadaflower/p/5533445.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!