|
使用 db_file_multiblock_read_count测试Oracle在不同系统中的IO能力(1)
link: http://www.eygle.com/faq/db_file_multiblock_read_count&OracleIO.htm 初始化参数db_file_multiblock_read_count 影响Oracle在执行全表扫描时一次读取的block的数量. db_file_multiblock_read_count的设置要受OS最大IO能力影响,也就是说,如果 你系统的硬件IO能力有限, 即使设置再大的db_file_multiblock_read_count也是没有用 的。 理论上,最大db_file_multiblock_read_count和系统IO能力应该有如下关系: Max(db_file_multiblock_read_count) = MaxOsIOsize/db_block_size
当然这个Max(db_file_multiblock_read_count)还要受Oracle的限制, 目前Oracle所支持的最大db_file_multiblock_read_count 值为128. 我们可以通过db_file_multiblock_read_count来测试Oracle在不同系统下,单次IO最大所能读取得数据量: $ sqlplus "/ as sysdba"
SQL*Plus: Release 10.1.0.2.0 - ProdUCtion on Wed Aug 11 23:43:52 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production With the Partitioning, OLAP and Data Mining options
SYS AS SYSDBA on 11-AUG-04 >show parameter read_count
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_file_multiblock_read_count integer 16
SYS AS SYSDBA on 11-AUG-04 >create tablespace dfmbrc 2 datafile '/opt/oracle/oradata/eygle/dfmbrc.dbf'
|