强制归档参数ARCHIVE_LAG_TARGET

本文详细介绍了在Standby环境中使用ARCHIVE_LAG_TARGET参数的方法。通过设置此参数,可以有效减少因故障导致的数据丢失,并提高备用数据库的可用性。推荐的值为1800秒(30分钟),过小的值可能会导致性能下降。

          在Standby 环境中,为了减少出现故障时数据损失,我们可以设置ARCHIVE_LAG_TARGET参数,强制进行日志切换。ARCHIVE_LAG_TARGET参数可以设置一个时间,通过时间限制,指定数据库强制进行Log Switch,进行归档。 这个参数的缺省值是0,即为不启用该参数。该参数合理的取值范围在60 ~ 7200之间。 通常大于7200和小于1800不被推荐,低于30分钟的切换时间可能导致性能问题。 

 

ARCHIVE_LAG_TARGET

PropertyDescription
Parameter typeInteger
Default value0 (disabled)
ModifiableALTER SYSTEM
Range of values0 or any integer in [60, 7200]
BasicNo
Real Application ClustersMultiple instances should use the same value.

ARCHIVE_LAG_TARGET limits the amount of data that can be lost and effectively increases the availability of the standby database by forcing 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.  

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-611277/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-611277/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值