DB_BLOCK_SIZE Initialization Parameter (92)

本文介绍了如何选择合适的数据库块大小,包括设置标准块大小的原则、操作系统块大小的关系、以及不同场景下选择较大块大小的优势。适合大型计算机系统或运行在快速磁盘驱动器和大量内存的环境中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The most commonly used block size should be picked as the standard block size. In
many cases, this is the only block size that you need to specify. Typically,
DB_BLOCK_SIZE is set to either 4K or 8K. If you do not set a value for this parameter,
the default data block size is operating system specific, which is generally adequate.

You cannot change the block size after database creation except by re-creating the
database. If the database block size is different from the operating system block size,
ensure that the database block size is a multiple of the operating system block size. For
example, if your operating system block size is 2K (2048 bytes), the following setting
for the DB_BLOCK_SIZE initialization parameter is valid:

DB_BLOCK_SIZE=4096

A larger data block size provides greater efficiency in disk and memory I/O (access
and storage of data). Therefore, consider specifying a block size larger than your
operating system block size if the following conditions exist:
■ Oracle Database is on a large computer system with a large amount of memory
and fast disk drives. For example, databases controlled by mainframe computers
with vast hardware resources typically use a data block size of 4K or greater.
■ The operating system that runs Oracle Database uses a small operating system
block size. For example, if the operating system block size is 1K and the default
data block size matches this, the database may be performing an excessive amount
of disk I/O during normal operation. For best performance in this case, a database
block should consist of multiple operating system blocks.

DB_BLOCK_SIZE参数
1. 只能为4K或8K , 与操作系统相关
2. 如果该值与操作系统块大小不一致 ,需保证该参数值为后者的整倍数
3. 大的快值提供了磁盘I/O与内存的效率
4. 如果以下条件存在 ,可考虑使用较大的块值:
a. 快的磁盘驱动器 , 大的内存机器上
b. 运行数据库的服务器操作系统使用较小的块值 ,如1K

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-995935/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-995935/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值