|
最初由 4pal 发布
[B]
NONONONONONONONONONONONONONONONO,别乱说
一般这个参数就徘徊在2K~8k之间 [/B]
基本同意。我查了一下ORACLE文档,8i版本中的默认值是2K或4K,不超过64K。
以下是教材[M09213]第9-10页的说明。另外要考虑和OS块之间的关系,对于盘阵要考虑和STRIP间的关系。
The default block size on most Oracle platforms is either 2 or 4 KB.
Some operating systems now allow block sizes of up to 64 KB. To configure the block size, check the documentation specific to your operating system, and particularly the Oracle installation and configuration guide for your platform.
Small Oracle Blocks
Advantages
• Small blocks reduce block contention because there are fewer rows per block.
• Small blocks are good for small rows.
• Small blocks are good for random access. Because it is unlikely that a block will
be reused after it is read into memory, a smaller block size makes more efficient
use of the buffer cache. This is especially important when memory resources are
scarce, because the size of the database buffer cache is limited.
Disadvantages
• Small blocks have relatively large overhead.
• You may end up storing only a small number of rows per block, depending on the
size of the row. This can cause additional I/Os.
• Small blocks can cause more index blocks to be read.
Large Oracle Blocks
Advantages
• There is relatively less overhead and thus more room to store useful data.
• Large blocks are good for sequential reads.
• Large blocks are good for very large rows.
• Larger blocks improve performance of index reads. The larger blocks can hold
more index entries in each block, which reduces the number of levels in large
indexes. Fewer index levels mean fewer I/Os when traversing the index branches.
Disadvantages
• A large index block size is not good when used in an OLTP type of environment,
because it increases block contention on the index leaf blocks.
• Space in the buffer cache is wasted if there are random accesses to small rows and
in a large block. For example, with an 8 KB block size and a 50-byte row size, you
would be wasting 7,950 bytes in the buffer cache if there were random accesses.
If you resize database blocks and there is no additional memory, you also need to reset
DB_BLOCK_BUFFERS. This affects the cache hit percentage. |
|