================================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 .
====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 .