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, orrecommended 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.
--日志切换过于频繁可能会引起性能下降,而日志切换频度过低,则可能会对数据库恢复有一定影响。比如实例恢复时间过长,或数据丢失量增加
LAG
is an analytic function. It provides access to more than one row of a table at the same time
without a self join
. Given a series of rows returned from a query and a position of the cursor,
LAG
provides access to a row at a given physical offset
prior
to that position.
For the optional offset
argument, specify an integer that is greater than zero. If you do not specify offset
, then its default is 1. The optional default
value is returned if the offset goes beyond the scope of the window. If you do not specify default
, then its default is null.
{RESPECT
| IGNORE
} NULLS
determines whether null values of value_expr
are included in or eliminated from the calculation. The default is RESPECT
NULLS
.
You cannot nest analytic functions by using LAG
or any other analytic function for value_expr
. However, you can use other built-in function expressions forvalue_expr
.