checkpoint

================================checkpoint==============================
====overview:
1.是一个数据结构代表checkpoint position,也就是一个scn在redo条目里,代表instance recovery的开始位置。
The checkpoint position is determined by the oldest dirty buffer in the database buffer cache. The checkpoint position acts as a pointer to the redo stream and is stored in the control file and in each data file header..

checkpoint是database buffer cache里最旧的dirty buffer存放的位置。存储在control file 和每个数据文件头。
2.把databuffer里的脏数据写到磁盘上的操作。



====checkpoint的目的:
1.减少实例或介质恢复的时间。
2.保证data buffer里的脏数据 定期写到disk
3.保证所有已经提交的数据写到磁盘,during a consistent shutdown。

====checkpoint发生时间======
1.数据库一致性shutdown。
2.alter system checkpoint
3.online redo log switch
4.alter database begin backup

====增量checkpoint:
为了避免大量写操作 在日志切换的时候。DBWR写脏数据的时候,他会更新checkpoint position,cause CKPT进程更新控制文件里checkpoint 位置。


======checkpoint process (CKPT)
checkpoint process更新控制文件和数据文件头with checkpoint information .
checkpoint information include the checkpoint position,scn ,location in online relog log to begin recovery.and so on .
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值