oracle log block size,Oracle Log Block Size

Oracle的日志块大小是固定的,并与操作系统相关。常见的日志块大小包括512、1024、2048和4096字节,适用于多种操作系统。日志块大小影响log_checkpoint_interval、log_io_size和max_dump_file_size参数设置。可以通过查询sys.x$kccle获取未列出操作系统的日志块大小。此外,文章提供了从StatsPack报告中推断日志块大小的公式。
摘要由CSDN通过智能技术生成

Although the size of redo entries is measured in bytes, LGWR writes the redo to the log files on disk in blocks. The size of redo log blocks is fixed in the Oracle source code and is operating system specific. Oracle's documentation uses the term "operating system block size" to refer to the log block size. Normally it is the smallest unit of I/O supported by the operating system for raw I/O, but on some operating systems it is the smallest possible unit of file system based I/O. The following table shows the most common log block sizes and some of the operating systems that use them.

Log Block SizeOperating Systems

512 bytesSolaris, AIX, Windows NT/2000, Linux, Irix, DG/UX, OpenVMS, NetWare, UnixWare, DYNIX/ptx

1024 bytesHP-UX, Tru64 Unix

2048 bytesSCO Unix, Reliant Unix

4096 bytesMVS, MPE/ix

The log block size is the unit for the setting of the log_checkpoint_interval , _log_io_size and max_dump_file_size parameters. Therefore, it is an important constant to know. If your operating system is not listed in the table above, then you can find your log block size using the following query.select max(lebsz) from sys.x$kccle;

This query is available as the APT script log_block_size.sql . If your operating system is not listed in the table above, please click on the feedback icon below and send us an email so that we can add it to the list.

The log block size can also be inferred from the system statistics in StatsPack reports. There is a 16 byte header for each log block, and the size of the data area is approximately the number of bytes of redo generated ( redo size ) plus the number of bytes of redo space left unused ( redo wastage ) divided by the number of log blocks written ( redo blocks written ). Thus the approximate formula is

16 + ( redo size + redo wastage ) / redo blocks written

This formula will commonly understate the log block size by a few bytes, because it does not allow for redo that has been generated but not yet written, and the redo size statistic is commonly a little inaccurate.

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值