查看oracle的块大小,查看操作系统块大小
查看操作系統(tǒng)塊大小oracle建庫(kù)一般設(shè)置數(shù)據(jù)庫(kù)塊大小8192K,一般是OS塊大小的整數(shù)倍,要避免數(shù)據(jù)庫(kù)塊大小小于系統(tǒng)塊大小的情況。1.在WINDOWS系統(tǒng)上,可以用命令fsutil來(lái)查看,測(cè)試如下:C:\Documents and Settings\administrator>fsutil fsinfo ntfsinfo c:
NTFS卷序列號(hào):?????? 0x72ccb5f2ccb5b129版本:
3.1區(qū)數(shù)量:
0x0000000008ff8235簇總數(shù):
0x00000000011ff046可用簇:
0x0000000000547b73保留總數(shù):
0x0000000000000050每個(gè)扇區(qū)字節(jié)數(shù):
512每個(gè)簇字節(jié)數(shù):
4096每個(gè)FileRecord段的字節(jié)數(shù): 1024每個(gè)FileRecord段的簇?cái)?shù): 0
Mft有效數(shù)據(jù)長(zhǎng)度:
0x0000000009cac000
Mft起始Lcn
:
0x00000000000c4df6
Mft2起始Lcn
:
0x00000000008ff823
Mft區(qū)域起始:
0x0000000001067920
Mft區(qū)域結(jié)尾:
0x000000000108ce60上面簇字節(jié)數(shù)既為塊大小。2.在linux系統(tǒng)上,可以用命令tune2fs,測(cè)試如下[root@localhost test10g]# df
Filesystem
1K-blocks????? Used Available Use% Mounted on
/dev/sda2
8776068?? 7576504??? 753764 91% /
/dev/sda1
497829???? 16303??? 455824?? 4%
/boot
none
517300???????? 0
517300?? 0% /dev/shm
/dev/sda5
1035660???? 96452??? 886600 10% /tmp
[root@localhost test10g]# tune2fs -l /dev/sda1|grep Block
Block
count:
514048
Block
size:
1024
Blocks per group:???????? 8192
[root@localhost test10g]# tune2fs -l /dev/sda2|grep Block
Block
count:
2229018
Block
size:
4096
Blocks per group:???????? 32768上面Block size即為塊大小。
--查看共享內(nèi)存頁(yè)大小
root@rh6a_[/root]# getconf PAGESIZE
4096
--查看塊大小
root@rh6a_[/root]# tune2fs -l /dev/sda1 |grep 'Block size'
Block size: ? ? ? ? ? ? ? 1024
3.在Solaris系統(tǒng)上,可以用命令fstyp,測(cè)試如下:
bash-2.05# fstyp -v /dev/rdsk/c0t2d0s0 |more
ufs
magic? ?11954? ?format??dynamic time
Mon Nov??4 17:46:05 2002
sblkno??16? ?? ?cblkno??24
iblkno??28
dblkno??408
sbsize??2048? ? cgsize??4096
cgoffset 160? ? cgmask??0xfffffff0
ncg? ???697? ???size
17827200? ?? ???blocks??17553949
bsize? ?4096? ? shift? ?12
mask? ? 0xfffff000
fsize? ?1024? ? shift? ?10
mask? ? 0xfffffc00
frag? ? 4? ?? ? shift? ?2
fsbtodb 1
minfree 1%? ?? ?maxbpg??1024
optim? ?time
maxcontig 256? ?rotdelay 0ms? ? rps
120
csaddr??408? ???cssize??11264
shift? ?8? ?? ? mask? ? 0xffffff00
ntrak? ?10? ?? ?nsect? ?320
spc? ???3200? ? ncyl
11142
cpg? ???16? ?? ?bpg
6400? ? fpg? ???25600
ipg? ???3040
nindir??1024? ? inopb? ?32
nspf? ? 2
nbfree??4388485 ndir? ? 2
nifree??2118876 nffree??4
cgrotor 0? ?? ? fmod? ? 0
ronly? ?0? ?? ? logbno??0上面sbsize即為塊大小。
4.AIX
root@jnrac1_[/]# df
Filesystem??? 512-blocks????? Free
%Used??? Iused %Iused Mounted on
/dev/hd4???????? 2097152?? 1676656
21%??? 10339???? 6% /
/dev/hd2???????? 6291456??? 934376
86%??? 51593??? 33% /usr
……
5.HPUNIX
root@$HPRX2800::[/]#df -g
/home????????????????? (/dev/vg00/lvol5?????? ) :
8192 file system
block size??????????? 8192
fragment size
16384 total blocks
15296 total free blocks
15208 allocated free blocks
3872 total i-nodes
3801 total free i-nodes
3801 allocated free i-nodes
1073741829 file system id??????????????????? vxfs file system type
0x10 flags
255 file system name length
/home file system specific string
總結(jié)
以上是生活随笔為你收集整理的查看oracle的块大小,查看操作系统块大小的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: oracle10 数据库审计,Oracl
- 下一篇: u盘显示项目不在计算机zhng,能装在u