关于ORACLE数据文件扩展的问题:

[复制链接]
查看11 | 回复7 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
不知道UNIX系统中是否可以在什么地方设置文件的最大大小
在ORACLE中都设置了数据文件的最大大小是无限制,可是有的系统中数据文件可以扩展到32G,有的系统中只可以扩展到3G,为什么?
-------UNIX和ORACLE都是64位
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
应该是由os的内核决定,而这由os的版本觉得,无法修改,如要改变,只有换os版本。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
这个是操作系统的问题,毕竟数据库运行在OS上,有的OS可能允许的最大文件只有2G
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
32位windows 下,好像文件大小不准超过2G吧
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
跟文件系统有关系,Oracle的默认文件大小可以支持到好像最多32G还是64G,除非使用10g的大文件才可以更大,至于数据库中设置的无限制,仅仅是代表在数据库中不限制扩展大小,不代表系统级支持
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
不记得从哪里看到,数据文件的最大size和db_block_size也有关系
一般8k的最大值为32G,16k的为64G
不知道和位数是否有关系,不过我们生产上确实遇到过一个db_block为16k的库一个文件到64G后就不能再扩展的情况
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Actually, the maximum size of a Oracle datafile is limited.
normally the datafiles we created is small datafile, we know Oracle supports BIGFILE tablespace, even datafile in BIGFILE tablespace is limited with its size, the normal small datafile will be in smaller size.
And also the size of datafile is related to block size, I remember a BIGFILE can maximally contain (?, 4 or other )G blocks.
Also, In OS layer, the file size is related to filesystem( a section of kernal ), different filesystems can support different maximum file size. also, the file size also related to filesystem block size, with the same filesystem,with 2k block size and 4k block size, are also different .
Talmud
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
yes ,you should make reference to os file limitation.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行