LGWR writes redo log (117)

本文详细介绍了Oracle数据库中LGWR进程如何同步写入活动镜像组的日志文件,并解释了当部分或全部日志文件不可用时LGWR的行为。此外,还探讨了快速提交机制的工作原理,即在用户发出提交命令时LGWR如何即时将提交记录和事务重做条目写入磁盘,而数据块的更改则被延迟。

LGWR writes synchronously to the active mirrored group of redo log files. If one of
the files in the group is damaged or unavailable, LGWR continues writing to other
files in the group and logs an error in the LGWR trace file and in the system alert log.
If all files in a group are damaged, or the group is unavailable because it has not been
archived, LGWR cannot continue to function.
When a user issues a COMMIT statement, LGWR puts a commit record in the redo log
buffer and writes it to disk immediately, along with the transaction’s redo entries. The
corresponding changes to data blocks are deferred until it is more efficient to write
them. This is called a fast commit mechanism. The atomic write of the redo entry
containing the transaction’s commit record is the single event that determines the
transaction has committed. Oracle returns a success code to the committing
transaction, although the data buffers have not yet been written to disk.

Note: Sometimes, if more buffer space is needed, LGWR writes redo
log entries before a transaction is committed. These entries become
permanent only if the transaction is later committed.

LGWR同步的写入到镜像的组日志文件
如果其中的一个损坏或者不可用 , LGWR写入组内的另一日志文件 , 并记录错误在LGWR跟踪文件和系统预警文件中
如果组内的文件都被损坏或者不可用 , LGWR则不能继续工作
fast committed mechanism :当用户提交commit语句时 , LGWR将提交记录与事务条目立即写入磁盘 ,
关联的数据块则被推迟直到更加有效时才写入

[@more@]

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

转载于:http://blog.itpub.net/10599713/viewspace-979917/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值