12c archive_lag_targe强制日志切换

12c R1测试环境

ARCHIVE_LAG_TARGET forces a log switch after the specified amount of time elapses.

A 0 value disables the time-based thread advance feature; otherwise, the value represents the number of seconds. Values larger than 7200 seconds are not of much use in maintaining a reasonable lag in the standby database. The typical, or recommended value is 1800 (30 minutes). Extremely low values can result in frequent log switches, which could degrade performance; such values can also make the archiver process too busy to archive the continuously generated logs.
建议半个小时到1个小时切换一次,以下为了做实验测试,设置了60秒。

SQL> show parameter lag

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target                   integer     0
client_result_cache_lag              big integer 3000
plsql_ccflags                        string
SQL> alter system set archive_lag_target=60;  --单位秒

System altered.

SQL> show parameter archive_lag_target;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target                   integer     60
SQL> select name,COMPLETION_TIME from v$archived_log where name is not null order by COMPLETION_TIME desc ;

NAME                                                         COMPLETION_TIME
------------------------------------------------------------ -------------------
+DATADG/arch/log_1_406_961866198_585bafa7.arc                2018-01-25 12-04-59
+DATADG/arch/log_1_405_961866198_585bafa7.arc                2018-01-25 12-03-59
...................省略









本文转自 roidba 51CTO博客,原文链接:http://blog.51cto.com/roidba/2064983,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值