天天看點

OCP-052考試題庫彙總(29)-CUUG内部解答版

When does an incremental checkpoint occur ?

A)when an online redo log switch occurs.

B)when DBWn writes dirty buffers as part of its normal processing.

C)when the ALTER SYSTEM CHECKPOINT statement is executed.

D)when a user tablespace is tabken offline.

Answer: B

CUUG:但從 8i 開始,oracle 在 log switch 的時候做的是增量檢查點,但從嚴格意義上來說并不能完全算是增量檢查點,因為在 log switch 的時候,不僅會像增量檢查點那樣更新控制檔案,而且還會像完全檢查點那樣會更新資料檔案頭(做過實驗,會更新資料檔案頭,當 switch logfile 的時候)。

冉:A 答案應該換成 B 答案。以文檔描述為準。

An incremental checkpoint is a type of thread checkpoint partly intended to avoid writing large numbers of blocks at online redo log switches. DBWn checks at least every three seconds to determine whether it has work to do. When DBWn writes dirty buffers, it advances the checkpoint position, causing CKPT to write the checkpoint position to the control file, but not to the data file headers.

趙:

DBWn 程序觸發 4 個條件:

1.每隔 3 秒鐘啟動一次 DBWn。

2.發生 CKPT 檢查點程序(包括增量檢查點和完全檢查點)。

3.如果髒資料塊的總數超過一定的限度。

4.當程序在 LRU 連結清單上查找可以用得 buffer header 時,掃描到一定限度,會觸發 DBWn。

注意:CKPT 與 DBWn 是配合使用

使用者 commit 與 rollback 是對 LGWR 起作用。