回滚段和UNDO段有什么区别?

[复制链接]
查看11 | 回复8 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
rollbak segments 和 undo segments有什么区别?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
好像没什么区别吧
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
一个是oracle8i的叫法,一个是oracle9i的叫法
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
9i 的UNDO自动管理,可是以下该怎么怎么理解呢?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
教材是9i 的
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Tablespace Usage
1 Reserve the SYSTEM tablespace for data dictionary objects.
2 Create locally managed tablespaces to avoid space management issues.
3 Split tables and indexes into separate tablespaces.
4 Create separate rollback tablespaces.
5 Store very large database objects in their own tablespace.
6 Create one or more temporary tablespaces.
Guidelines
1 Each database should have separate tablespaces specified for:
1.1 Data dictionary objects
1.2 Rollback segments and undo segments
1.3 Temporary segments
1.4 Tables
1.5 Indexes
1.6 Very large objects
2 Most production databases have many more tablespaces than this, but the important principle is to separate data of different types and with different uses for housekeeping and backup purposes.
3 The SYSTEM tablespace contains only data dictionary objects owned by sys. No other users should have the ability to create objects in it.
4 Remember that stored objects such as packages and database triggers form part of the data dictionary.
5 Rollback segments should use rollback segment tablespaces exclusively.
6 Undo segments can only exist in UNDO tablespaces thus making them exclusive.
请见
Tablespace Usage第四点
Guidelines1.2和5、6三处。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
帮我解释一下吧。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
rollback 主要用在事务处理失败时,将该事务的所有语句回滚。
从 setAutoCommit(false)开始的所有SQL语句。
undo主要对上一条SQL语句起作用(要设置为setAutoCommit(false))。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
UNDO只存在于本地管理的UNDO TS中,
ROLLBACK SEGS 只存在于字典管理的ROLLBACK TS内。
二者叫法不同,特性也不同,但功能应该是一样的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行