Oracle_052_lesson_p10

Managing Undo Data 管理UNDO数据

you should be able to:
1、Explain DML and undo data generation
2、Monitor and administer undo data
3、Describe the difference between undo data and redo data
4、Configure undo retention
5、Guarantee undo retention
6、Use the Undo Advisor

Undo data is:
A copy of original, premodified data
Captured for every transaction that changes data
Retained at least until the transaction is ended
Used to support:
Rollback operations
Read-consistent queries
Oracle Flashback Query, Oracle Flashback Transaction, and Oracle Flashback Table
Recovery from failed transactions

有undo表空间,以段的方式存储.

Undo information is stored in undo segments, which are stored in an undo tablespace. Undo tablespaces:
Are used only for undo segments
Have special recovery considerations
May be associated with only a single instance
Require that only one of them be the current writable undo tablespace for a given instance at any given time

Oracle_052_lesson_p10

Managing Undo
Automatic undo management:
Fully automated management of undo data and space in a dedicated undo tablespace
For all sessions
Self-tuning in AUTOEXTEND tablespaces to satisfy long-running queries
Self-tuning in fixed-size tablespaces for best retention
DBA tasks in support of Flashback operations:
Configuring undo retention
Changing undo tablespace to a fixed size
Avoiding space and “snapshot too old” errors 快照过旧

Configuring Undo Retention
UNDO_RETENTION specifies (in seconds) how long already committed undo information is to be retained. The only time you must set this parameter is when:
The undo tablespace has the AUTOEXTEND option enabled
You want to set undo retention for LOBs
You want to guarantee retention

Guaranteeing Undo Retention
SQL> ALTER TABLESPACE undotbs1 RETENTION GUARANTEE;

Oracle_052_lesson_p10

Oracle_052_lesson_p10

Oracle_052_lesson_p10

Oracle_052_lesson_p10

Oracle_052_lesson_p10

转载于:https://blog.51cto.com/3938853/2162778

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值