Oracle 参数 LOG_ARCHIVE_CONFIG 官方解释,作用,如何配置最优化建议
本站中文解释
LOG_ARCHIVE_CONFIG参数是一个多重分类的参数,用于设置Oracle的归档模式。它主要由DESTINATION、ARCHIVELOG模式和归档选项组成。
DESTINATION:
DESTINATION参数决定Oracle归档日志文件存储位置,其可设定值是一个以逗号分隔开的多个字符串或路径,每一个代表一个归档日志文件存储目录。
ARCHIVELOG模式:
ARCHIVELOG模式决定Oracle归档模式的开关状态,它的可设定值有两个:ENABLE和DISABLE,ENABLE参数启动归档模式,DISABLE参数关闭归档模式。
归档选项:
归档选项是一组特定条件,系统根据这些条件决定归档日志文件到何处存储,参数可设定值有:MANDATORY、OPTIONAL、ALWAYS和NONE,MANDATORY参数表明该文件必须归档,OPTIONAL参数表明该文件应当根据业务情况归档,ALWAYS参数表明该文件必须归档,NONE参数表明该文件不归档。
设置正确的LOG_ARCHIVE_CONFIG参数:
要正确设置LOG_ARCHIVE_CONFIG,需要根据实际的业务需求配合ARCHIVELOG模式设定DESTINATION及归档选项,以确保Oracle系统中可用的所有日志文件都可以安全且方便地归档。
官方英文解释
LOG_ARCHIVE_CONFIG
enables or disables the sending of redo logs to remote destinations and the receipt of remote redo logs, and specifies the unique database names (DB_UNIQUE_NAME
) for each database in the Data Guard configuration.
Property | Description |
---|---|
Parameter type |
String |
Syntax |
|
Default value |
|
Modifiable |
|
Modifiable in a PDB |
No |
Basic |
No |
Values
-
SEND
Enables the sending of redo logs to remote destinations
-
NOSEND
Disables the sending of redo logs to remote destinations
-
RECEIVE
Enables the receipt of remotely archived redo logs
-
NORECEIVE
Disables the receipt of remotely archived redo logs
-
DG_CONFIG
Specifies a list of up to 30 unique database names (defined with the
DB_UNIQUE_NAME
initialization parameter) for all of the databases in the Data Guard configuration. -
NODG_CONFIG
Eliminates the list of service provider names previously specified with the
DG_CONFIG
option.
When this parameter has not been set, its default value is NULL
. However, the NULL
value is treated as if the parameter has been set to ‘SEND, RECEIVE, NODG_CONFIG’
.