OS block and Oracle block

下面我们看看操作系统的块和它上面的数据库块的大小比较:

linux:
su -
Password: 
[root@my root]# /sbin/tune2fs -l /dev/sda1 | grep Block
Block count:              104391
Block size:               1024
Blocks per group:         8192

sqlplus "/as sysdba"
SQL*Plus: Release 9.2.0.6.0 - Production on Sun Nov 2 21:58:37 2008

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production

SQL> show parameter db_block_size

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_block_size                        integer     8192
SQL> 
----oracle数据库块是操作系统块的8倍。

windows:
C:\>fsutil fsinfo ntfsinfo c:
NTFS 卷序列号 :       0xf4445037444ffabe
版本 :                         3.1
区数量 :                  0x00000000030d40c3
簇总数 :                  0x000000000061a818
可用簇  :                  0x0000000000313f7d
保留总数 :                  0x0000000000000040
每个扇区字节数  :               512
每个簇字节数 :               4096
每个 FileRecord 段的字节数    : 1024
每个 FileRecord 段的簇数 : 0
Mft 有效数据长度 :           0x00000000044e4000
Mft 起始 Lcn  :                  0x00000000000c0000
Mft2 起始 Lcn :                  0x000000000030d40c
Mft 区域起始 :                  0x00000000000c44e0
Mft 区域结尾   :                  0x00000000000c5bc0
上面的簇字节数即为块大小。
C:\>sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.3.0 - Production on 星期日 11月 2 22:01:51 2008

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> show parameter db_block_size

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_block_size                        integer     8192
SQL>
oracle数据库块是操作系统块的2倍。

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

转载于:http://blog.itpub.net/24763419/viewspace-693877/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值