Automatically tuned multi-block reads in 10g

在Oracle 10g R2中,数据库能够自动选择db_file_multiblock_read_count参数的最佳值,该值依据操作系统最优I/O大小及缓存大小而定。这一特性改善了全表扫描的性能,通过增加每次数据库I/O操作读取的块数。对于管理员来说,不再需要手动设置此参数,允许数据库自行决定多块I/O操作中读取的块数。

http://www.dba-oracle.com/t_automatically_tuned_multiblock_reads.htm

 

Question: I did play around with different settings of db_file_multiblock_read_count within 10g with no appreciable results. My setting of the db_file_multiblock_read_count parameter had almost no effect on query performance, I guess this is related to a read ahead cache on os/filesystem/disk device level with at least 128 blocks.

 I am concerned about switching to sequential reads with setting db_file_multiblock_read_count=0, using the new 10g feature "Automatically Tuned Multiblock Reads".

Is it already reliable to use "Automatically Tuned Multiblock Reads" with 10g or should one still run with an as high as possible setting for db_file_multiblock_read_count? Are there any drawbacks having db_file_multiblock_read_count on a high value ?

 

Answer:  Oracle notes that the cost of reading the blocks from disk into the buffer cache can be amortized by reading the blocks in large I/O operations. The db_file_multiblock_read_count parameter controls the number of blocks that are pre-fetched into the buffer cache if a cache miss is encountered for a particular block.

The value of this parameter can have a significant impact on the overall database performance and it is not easy for the administrator to determine its most appropriate value. Oracle Database 10g Release 2 automatically selects the appropriate value for this parameter depending on the operating system optimal I/O size and the size of the buffer cache

The Oracle database improves the performance of tablescans by increasing the number of blocks read in a single database I/O operation. If your SQL statement is going to read all of the rows in a table, it makes sense to return as many blocks as you can in a single read. In releases prior to Oracle10G R2, administrators used the db_file_multiblock_read_count initialization parameter to tell Oracle how many block to retrieve in the single I/O operation.

But setting the db_file_multiblock_read_count parameter too high can affect access path selection. Full table scans use multi-block reads, so the cost of a full table scan depends on the number of multi-block reads required to read the entire table. The more blocks retrieved in a single multi-block I/O execution, the more favorable a tablescan looks to the optimizer.

In releases prior to Oracle10G R2, the permitted values for db_file_multiblock_read_count were platform-dependent. The most common settings ranged from 4 to 64 blocks per single multi-block I/O execution.


The DB_FILE_MULTIBLOCK_READ_COUNT parameter controls the number of blocks pre-fetched into the buffer cache during scan operations, such as full table scan and index fast full scan.

Oracle Database 10g Release 2 automatically selects the appropriate value for this parameter depending on the operating system optimal I/O size and the size of the buffer cache.

This is the default behavior in Oracle Database 10g Release 2, if you do not set any value for the db_file_multiblock_read_count parameter (i.e. removing it from your spfile or init.ora file). If you explicitly set a value, then that value is used, and is consistent with the previous behavior.



Chris Foot notes:  In Oracle 10G R2, Oracle defaults the db_file_multiblock_read_count to the maximum number of blocks that can be effectively read. Although this value is also platform-dependent, Oracle documentation states that it is 1 MB for most platforms. This 1 MB size allows much more data to be read in a single operation in 10GR2 than previous releases.

In addition, this larger value does not make tablescans look more favorable to the optimizer. As a result, it is now recommended to not set the db_file_multiblock_read_count parameter and let the database determine the number of blocks read in multi-block I/O operations.

 

要了解AI-automatically-generates-novels项目在GitHub上的活跃度,可从以下几个指标来看: - **Star数量**:在项目页面可以看到该项目被用户标星的数量,星数越多通常表示项目越受关注。 - **Fork数量**:Fork意味着其他开发者复制该项目到自己的仓库,Fork数体现了项目在开发者群体中的传播和被使用程度。 - **Commit数量**:Commit是对项目代码进行提交更新的操作,Commit数量多反映出项目代码更新频繁,开发者们积极参与项目开发。 - **Issue数量**:Issue是项目中提出问题、反馈Bug、交流想法的地方,Issue数量及处理情况能反映出项目的热度和开发者对问题的响应速度。 - **Pull Request数量**:Pull Request是开发者向项目贡献代码的方式,其数量能体现外界开发者对项目的贡献活跃度。 可通过访问https://github.com/wfcz10086/AI-automatically-generates-novels 项目页面,直接查看上述指标的具体数据,从而综合评估该项目在GitHub上的活跃度。 ```python # 以下是简单模拟获取GitHub项目活跃度相关信息的代码示例(需要安装PyGithub库) from github import Github # 初始化GitHub对象 g = Github() # 获取指定项目 repo = g.get_repo("wfcz10086/AI-automatically-generates-novels") # 获取Star数量 stars = repo.stargazers_count print(f"项目Star数量: {stars}") # 获取Fork数量 forks = repo.forks_count print(f"项目Fork数量: {forks}") # 获取Commit数量 commits = repo.get_commits().totalCount print(f"项目Commit数量: {commits}") # 获取Issue数量 issues = repo.get_issues(state='all').totalCount print(f"项目Issue数量: {issues}") # 获取Pull Request数量 pulls = repo.get_pulls(state='all').totalCount print(f"项目Pull Request数量: {pulls}") ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值