iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >12c archive_lag_targe强制日志切换
  • 129
分享到

12c archive_lag_targe强制日志切换

2024-04-02 19:04:59 129人浏览 泡泡鱼
摘要

12c R1测试环境 ARCHive_LAG_TARGET forces a log switch after the specified amount of time elapses. A 0 value

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
...................省略
您可能感兴趣的文档:

--结束END--

本文标题: 12c archive_lag_targe强制日志切换

本文链接: https://www.lsjlt.com/news/43247.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作