Oracle 参数 LOG_ARCHIVE_DEST_STATE_n 官方解释,作用,如何配置最优化建议
本站中文解释
参数
LOG_ARCHIVE_DEST_STATE_n参数用于设置Archive log模式下指定Archive log的目标状态,即指定使用哪些Archive log目标(destination),以及当前目标的状态及错误处理方式,每个Archive log目标(LOG_ARCHIVE_DEST_n)需要配一个对应的状态参数(LOG_ARCHIVE_DEST_STATE_n)。
LOG_ARCHIVE_DEST_STATE_n参数可以设置为下列三个可选值:
-ENABLE:启用状态,即当前Archive log目标将启用,Archiver进程可以将Archive log file写入该目标;
-DEFER:挂起状态,即当前Archive log目标将挂起,Archiver进程将不会写入该目标,直到被重启为ENABLE状态;
-DEFUNCT:被废弃状态,即当前Archive log目标已失效,Archiver进程不再将Archive log file写入该目标,必须重新配置该参数为ENABLE或DEFER状态,并设置一个新的Archive log目标参数(LOG_ARCHIVE_DEST_n),才能重新开始将Archive log写入新的目标。
正确设置LOG_ARCHIVE_DEST_STATE_n参数的方法:
1.计划好需要启用的Archive log目标,并在tnsnames.ora文件中完成网络配置。
2.在Oracle的init.ora参数文件或spfile.ora文件中,设置LOG_ARCHIVE_DEST_n参数,并指定LOG_ARCHIVE_DEST_STATE_n参数值为ENABLE。
3.完成参数配置后,重启Oracle数据库实例,以使其生效。
官方英文解释
The LOG_ARCHIVE_DEST_STATE_
n
parameters (where n
= 1, 2, 3, … 31) specify the availability state of the corresponding destination.
Property | Description |
---|---|
Parameter type | String |
Syntax |
|
Default value |
|
Modifiable |
|
Modifiable in a PDB | No |
Basic | Yes |
The parameter suffix (1 through 31) specifies one of the corresponding LOG_ARCHIVE_DEST_
n
destination parameters.
Values
enable
Specifies that a valid log archive destination can be used for a subsequent archiving operation (automatic or manual). This is the default.
defer
Specifies that valid destination information and attributes are preserved, but the destination is excluded from archiving operations until reenabled.
alternate
Specifies that a log archive destination is not enabled but will become enabled if communications to another destination fail.
reset
Functions the same as
defer
, but clears any error messages for the destination if it had previously failed.
The LOG_ARCHIVE_DEST_STATE_
n
parameters have no effect on the ENABLE
state for the LOG_ARCHIVE_DEST
or LOG_ARCHIVE_DUPLEX_DEST
parameters.
The V$ARCHIVE_DEST
dynamic performance view shows values in use for the current session. The DEST_ID
column of that view corresponds to the archive destination suffix n
.
See Also:
Oracle Data Guard Concepts
and Administration for more information about this parameter“V$ARCHIVE_DEST”
编辑:一起学习网
标签:目标,参数,状态,进程,文件