Oracle 参数 DB_CREATE_ONLINE_LOG_DEST_n 官方解释,作用,如何配置最优化建议
本站中文解释
DB_CREATE_ONLINE_LOG_DEST_n参数指定控制文件组中每个日志文件可以找到的位置。它可以针对每个在线日志文件组指定多个逻辑目录描述符,其中n的值从1开始,增长1。
正确设置:
1.在$ORACLE_HOME/dbs路径下创建一个init参数文件,并在其中添加DB_CREATE_ONLINE_LOG_DEST_n参数,其中n代表日志文件组数,格式为:
DB_CREATE_ONLINE_LOG_DEST_n = ‘string’,
其中string为内存及磁盘中日志文件及对应机制之间关系的描述。
2.检查所有日志文件组描述是否有重复,每个日志组的描述要唯一,否则会报错。
3.检查DB_CREATE_ONLINE_LOG_DEST_n的有效范围是否正确,最小值为 1,最大值为 10。如果设置不正确,可能会出现“无效目录编号”的错误信息。
4.务必确保日志文件的对应机制(LOG_ARCHIVE_DUPLEX_DEST或者LOG_ARCHIVE_MIN_SUCCEED_DEST)是有效的,即指向现有的有效日志文件组。
5.最后,应该将DB_CREATE_ONLINE_LOG_DEST_n参数添加到spfile,并重新启动Oracle实例,将参数生效。
官方英文解释
DB_CREATE_ONLINE_LOG_DEST_
n
(where n
= 1, 2, 3, … 5) specifies the default location for Oracle-managed control files and online redo logs.
Property | Description |
---|---|
Parameter type |
String |
Syntax |
|
Default value |
There is no default value. |
Modifiable |
|
Modifiable in a PDB |
Yes |
Basic |
Yes |
If more than one DB_CREATE_ONLINE_LOG_DEST_
n
parameter is specified, then the control file or online redo log is multiplexed across the locations of the other DB_CREATE_ONLINE_LOG_DEST_
n
parameters. One member of each online redo log is created in each location, and one control file is created in each location.
Specifying at least two parameters provides greater fault tolerance for the control files and online redo logs if one of the locations should fail.
If a file system directory is specified as the default location, then the directory must already exist; Oracle does not create it. The directory must have appropriate permissions that allow Oracle to create files in it. Oracle generates unique names for the files, and a file thus created is an Oracle Managed File.
See Also:
Oracle Database
Administrator’s Guide for more information on setting this parameter and on Oracle Managed Files