oracle alter机制,请教关于alter tablespace begin backup 和 alter tablespace end backup 机制?

除了出发检查点一致以外,还有个原因: 也是为什么处于backup的文件会产生额外的redo

There is not excessive redo generated, there is additional information

logged into the online redo log during a hot backup the first time a block is

modified in a tablespace that is in hot backup mode.

in hot backup mode only 2 things are different:

o the first time a block is changed in a datafile that is in hot backup mode,

the ENTIRE BLOCK is written to the redo log files, not just the changed bytes.

Normally only the changed bytes (a redo vector) is written. In hot backup mode,

the entire block is logged the FIRST TIME.  This is because you can get into a

situation where the process copying the datafile and DBWR are working on the

same block simultaneously.  Lets say they are and the OS blocking read factor is

512bytes (the OS reads 512 bytes from disk at a time).  The backup program goes

to read an 8k Oracle block.  The OS gives it 4k.  Meanwhile -- DBWR has asked to

rewrite this block.  the OS schedules the DBWR write to occur right now.  The

entire 8k block is rewritten.  The backup program starts running again

(multi-tasking OS here) and reads the last 4k of the block.  The backup program

has now gotten an impossible block -- the head and tail are from two points in

time.  We cannot deal with that during recovery.  Hence, we log the entire block

image so that during recovery, this block is totally rewritten from redo and is

consistent with itself at least.  We can recover it from there.

o the datafile headers which contain the SCN of the last completed checkpoint

are NOT updated while a file is in hot backup mode.  This lets the recovery

process understand what archive redo log files might be needed to fully recover

this file.

To limit the effect of this additional logging, you should ensure you only place

one tablepspace at a time in backup mode and bring the tablespace out of backup

mode as soon as you have backed it up.  This will reduce the number of blocks

that may have to be logged to the minimum possible.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值