Oracle 参数 DBWR_IO_SLAVES 官方解释,作用,如何配置最优化建议

本站中文解释

:

DBWR_IO_SLAVES参数控制数据库操作进程(DBWR)使用的文件I/O从进程数量。当系统出现磁盘I/O性能瓶颈,建议将该参数值设置大一点,以提高磁盘I/O的吞吐量。

默认情况下,DBWR_IO_SLAVES的值为0,表示不开启从进程,只有主进程。如果确实有I/O性能缓慢的情况出现,可以适当调整该参数。

正确设置DBWR_IO_SLAVES参数的方法是:

1、使用SQL或者SQL*Plus查看I/O使用的情况,比如可以使用V$SESSTAT和V$SYSSTAT视图,查看I/O操作的耗时和I/O调用次数;

2、如果耗时较高和调用次数较多,则适当调大DBWR_IO_SLAVES参数值,比如从0->2;

3、注意,调大DBWR_IO_SLAVES参数值有可能会降低系统性能,要根据实际情况来选择合适的值,并且需要经过一段时间的性能测试才能确定最佳参数值;

4、最终选择完成后,用alter system命令即可更新数据库参数。

官方英文解释

DBWR_IO_SLAVES specifies the number of I/O server processes used by the DBW0 process.

Property Description

Parameter type

Integer

Default value

0

Modifiable

No

Modifiable in a PDB

No

Range of values

0 to operating system-dependent

Basic

No

DBWR_IO_SLAVES is relevant only on systems with only one database writer process (DBW0). The DBW0 process and its server processes always write to disk. By default, the value is 0 and I/O server processes are not used.

If you set DBWR_IO_SLAVES to a nonzero value, the number of I/O server processes used by the ARCH and LGWR processes is set to 4. However, the number of I/O server processes used by Recovery Manager is set to 4 only if asynchronous I/O is disabled (either your platform does not support asynchronous I/O or disk_asynch_io is set to false).

Typically, I/O server processes are used to simulate asynchronous I/O on platforms that do not support asynchronous I/O or that implement it inefficiently. However, you can use I/O server processes even when asynchronous I/O is being used. In that case the I/O server processes will use asynchronous I/O.

I/O server processes are also useful in database environments with very large I/O throughput, even if asynchronous I/O is enabled.

See Also:

  • “BACKUP_TAPE_IO_SLAVES”

  • Oracle Database
    Performance Tuning Guide
    for more information about this parameter

版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《Oracle 参数 DBWR_IO_SLAVES 官方解释,作用,如何配置最优化建议》
文章链接:https://zhuji.vsping.com/262786.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。