UNDO 这句如何理解?

[复制链接]
查看11 | 回复2 | 2011-5-7 01:45:08 | 显示全部楼层 |阅读模式
OCP 9i DBA Fundamentals I vol1 page 311:
then all transactions are complete, and the tablespace can be dropped.
DROP TABLESPACE UNDOTBS;
The Oracle server may reference tablespace UNDOTBS after switching to another UNDO[/COLOR] tablespace to provide a consistent read for queries. Queries requiring information from tablespace UNDO1, after it is no longer available to provide a consistent read, receive the error: ORA-1555 snapshot too old.
为何 UNDOTBS drop 掉后, 还有可能被引用?
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
你虽然已经drop undo表空间了,但是其他事物由于要保证transaction的完整性可能会对你已经删除的前image信息要查询,查不到,就会报错,这应该是跟参数undo_retention有关.
回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
因为你drop的那个undo tablespace上有undo segment数据啊..
如果在你drop 这个tablespace之前已经有一个查询开始了, 并且需要这个tablespace上的某个block去构造一致读, 就会报ora-01555的错误了..
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行