ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ARCHIVE_LAG_TARGET手动设置归档间隔时间,强制日志切换

ARCHIVE_LAG_TARGET手动设置归档间隔时间,强制日志切换

原创 Linux操作系统 作者:tolywang 时间:2009-05-31 16:10:05 0 删除 编辑
          在Standby中,有时候我们为了减少数据损失,可以设置ARCHIVE_LAG_TARGET 参数来进行强制日志切换 。   一般设置 1800秒 ~ 7200s 之间,过低会导致性能问题,过高对于强制日志切换就没有意义了(可能还没有到时间就因为online redo log 满了自动切换了) 。

ARCHIVE_LAG_TARGET

Parameter type

Integer

Default value

0 (disabled)

Parameter class

Dynamic: ALTER SYSTEM

Range of values

0 or any integer in [60, 7200]

Real Application Clusters

Multiple 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 a user-specified time period 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博客 ” ,链接:https://blog.itpub.net/35489/viewspace-604548/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695897