|
The fast-start checkpointing feature is enabled by specifying a non-zero desired mean-time to recover (MTTR) value, which will be used to set the FAST_START_MTTR_TARGET initialization parameter. This parameter controls the amount of time the database takes to perform crash recovery for a single instance. When fast-start checkpointing is enabled, Oracle automatically maintains the speed of checkpointing so that the requested MTTR is achieved. Setting the value to 0 will disable this functionality.
- SQL> alter system set fast_start_mttr_target=10;
- System altered.
- SQL> show parameter log_check
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- log_checkpoint_interval integer 0
- log_checkpoint_timeout integer 1800
- log_checkpoints_to_alert boolean FALSE
- SQL> alter system set log_checkpoints_to_alert=true;
复制代码- Current log# 2 seq# 122 mem# 0: +DATA/orcl/onlinelog/group_2.262.816169639
- Current log# 2 seq# 122 mem# 1: +FRA/orcl/onlinelog/group_2.258.816169639
- Tue Nov 13 18:56:22 2018
- Archived Log entry 113 added for thread 1 sequence 121 ID 0x501b221c dest 1:
- Tue Nov 13 21:06:49 2018
- ALTER SYSTEM SET fast_start_mttr_target=3601 SCOPE=BOTH;
- Tue Nov 13 21:10:45 2018
- MTTR advisory was temporarily turned off because FAST_START_MTTR_TARGET was altered.
- ALTER SYSTEM SET fast_start_mttr_target=10 SCOPE=BOTH;
- Tue Nov 13 21:11:09 2018
- FAST_START_MTTR_TARGET 10 is set too low, using minimum achievable MTTR 17 instead.
- Tue Nov 13 21:12:28 2018
- ALTER SYSTEM SET log_checkpoints_to_alert=TRUE SCOPE=BOTH;
- Tue Nov 13 21:24:56 2018
- MTTR advisory was temporarily turned off because FAST_START_MTTR_TARGET was altered.
- ALTER SYSTEM SET fast_start_mttr_target=5 SCOPE=BOTH;
- Tue Nov 13 21:25:15 2018
- Incremental checkpoint up to RBA [0x7a.b1e3.0], current log tail at RBA [0x7a.b3d6.0]
- FAST_START_MTTR_TARGET 5 is set too low, using minimum achievable MTTR 17 instead.
复制代码 当下一个Incremental checkpoint up to RBA ,
select d.RESETLOGS_CHANGE#,
d.CHECKPOINT_CHANGE#,
d.CURRENT_SCN
from v_$database d;
select *
from v_$datafile df;
checkpoint_change#才会更新。(这个号,用来表征对应的数据文件,在内存中再也找不到比它小的块)。
上完1Z0-052介绍章(12/40),1Z0-053介绍章(13/40)
|
|