ITPub博客

首页 > 应用开发 > IT综合 > read consistent process

read consistent process

原创 IT综合 作者:pentium 时间:2009-09-16 17:54:55 0 删除 编辑

the process for oracle read data block

[@more@]

■ User 1 updates a record in block 777 (user1 has not committed).

■ User 2 queries the same block and sees that the lock byte is set for a row being queried.

■ User 2 goes to the ITL portion of the block and get the XID (transaction ID).

■ The XID maps to the UNDO block, which holds the information before the update was done.

■ A clone of the block is done (call it block 778).

■ The UNDO information is applied to the block, rolling it forward, but to where it used to be (versus how most people think of it—rolling it back).

■ Block 777 is a CURRENT block.

■ Block 778 is a CONSISTENT READ block before the User 1 update occurred.

■ If another user wants to do a query before the commit, that user can also read the CR version.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14377/viewspace-1027025/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Bash 实例
下一篇: 家乡衡阳...
请登录后发表评论 登录
全部评论

注册时间:2010-09-30

  • 博文量
    191
  • 访问量
    327296