设为首页 加入收藏

TOP

设置数据库归档时间间隔的方法
2018-05-21 15:48:59 】 浏览:40
Tags:设置 数据库 归档 时间 间隔 方法

设置数据库归档时间间隔,比如30分钟归档一次。

ARCHIVE_LAG_TARGET

Property Description
Parameter type Integer
Default value 0(disabled)
Modifiable ALTER SYSTEM
Range of values 0 or any integer in [60, 7200]
Basic No
Oracle RAC Multiple instances should use the same value.

ARCHIVE_LAG_TARGETforces 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.

See Also:

Oracle Data Guard Concepts and Administrationfor more information about criteria for setting this parameter

设置归档时间间隔为30分钟,并查看效果

SYS@test>alter system set archive_lag_target=1800;

System altered.

-rw-r-----. 1 oracle oinstall     2560 May 15 13:34 1_196_963738576.arc
-rw-r-----. 1 oracle oinstall 38250496 May 17 09:00 1_197_963738576.arc
-rw-r-----. 1 oracle oinstall    15360 May 17 09:00 1_198_963738576.arc
-rw-r-----. 1 oracle oinstall 42948096 May 17 10:03 1_199_963738576.arc
-rw-r-----. 1 oracle oinstall 43029504 May 17 19:00 1_200_963738576.arc
-rw-r-----. 1 oracle oinstall  4195840 May 17 19:43 1_201_963738576.arc
-rw-r-----. 1 oracle oinstall  3424256 May 17 20:13 1_202_963738576.arc
-rw-r-----. 1 oracle oinstall  1565184 May 17 20:43 1_203_963738576.arc
-rw-r-----. 1 oracle oinstall  3587072 May 17 21:13 1_204_963738576.arc
-rw-r-----. 1 oracle oinstall  1616384 May 17 21:43 1_205_963738576.arc
[oracle@test archive_log]$

end

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Oracle修改字符集ORA-02374,ORA-.. 下一篇MySQL删除数据操作 语法介绍

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目