oracle中sync,Oracle中的log sync wait

log sync waits are most commonly caused by frequent commits. When you commit, you must

wait for LGWR to flush the contents of the redo log buffer to disk (else we could not

assure you of recovery).

A small log buffer would manifest itself as a LOG_BUFFER_SPACE wait.

Having data files and other things on the same device as your online redo log can

definitely impact log writers ability to do its job as fast as possible.

Things you can do:

o look at your transactions. If you are "over committing" -- commiting in the mistaken

belief that you are saving resources and not on true transactional boundaries -- stop it.

Commit only when your transaction is over and do not commit too frequently (if you have

very small transactions, so be it -- you MUST commit but if you are committing just for

the sake of committing, don't)

o speed up LGWR. Make it more efficient. Ensure you are not using something like RAID 5

for log devices. Reduce contention on that device (let LGWR own it). Ensure LGWR and

ARCH are not contending with eachother (you want at lead 5 devices dedicated to logging

-- you NEED to mirror redo members and you NEED to archive. So, if you have disks 1..5

you can:

have redo log groups 1, 3, 5, 7, .... on disks 1 and 3

redo log groups 2, 4, 6, 8, .... on disks 2 and 4

archive destination to disk 5

Now, when LGWR is writing to groups 1, 3, 5, 7, .... on disks 1/3, ARCH will be reading

groups 2, 4, 6, 8, ... on disks 2/4 and writing to disk 5. When LGWR advances, so does

ARCH and they'll switch disks. Never does ARCH and LGWR contend with eachother.

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值