码迷,mamicode.com
首页 > 数据库 > 详细

Oracle_Concept_undo

时间:2018-05-12 00:01:50      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:mit   res   com   ora   for   acl   Once   segment   nbsp   

1. If the current extent has more free blocks then the next free block is allocated.
2. Otherwise, if the next extent expired then wrap in the next extent and return the first block.
3. If the next extent is not expired then get space from the UNDO tablespace. If a free extent is available then allocate it to the undo segment and return the first block in the new extent.
4. If there is no free extent available, then steal expired extents from offline undo segments. De-allocate the expired extent from the offline undo segment and add it to the undo segment. Return the first free block of the extent.
5. If no expired extents are available in offline undo segments, then steal from online undo segments and add the new extents to the current undo segment.  Return the first free block of the extent.
6. Extend the file in the UNDO tablespace. If the file can be extended then add an extent to the current undo segment and then return the block.
7. Tune down retention in decrements of 10% and steal extents that were unexpired, but now expired with respect to the lower retention value.
8. Steal unexpired extents from any offline undo segments.
9. Try to reuse unexpired extents from own undo segment. If all extents are currently busy (they contains uncommitted information) go to the step 10. Otherwise, wrap into the next extent.
10. Try to steal unexpired extents from any online undo segment.
11. If all the above fails then return ORA-30036 unable to extend segment by %s in undo tablespace ‘%s‘

 

 

 

参考文档:http://blog.51cto.com/tiany/1432894 Doc ID 1579779.1

 

Oracle_Concept_undo

标签:mit   res   com   ora   for   acl   Once   segment   nbsp   

原文地址:https://www.cnblogs.com/dayu-liu/p/9026200.html

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