先看Oracle 官网的说明, 看的是Oracle 10gR2的文档:

Physical Database Limits

Item

Type of Limit

Limit Value

Database Block Size

Minimum

2048 bytes; must be a multiple of operating system physical block size

Database Block Size

Maximum

Operating system dependent; never more than 32 KB

Database Blocks

Minimum in initial extent of a segment

2 blocks

Database Blocks

Maximum per datafile

Platform dependent; typically 2^22 - 1 blocks

Controlfiles

Number of control files

1 minimum; 2 or more (on separate devices) strongly recommended

Controlfiles

Size of a control file

Dependent on operating system and database creation options; maximum of 25,000 x (database block size)

Database files

Maximum per tablespace

Operating system dependent; usually 1022

Database files

Maximum per database

65533

May be less on some operating systems

Limited also by size of database blocks and by the DB_FILES initialization parameter for a particular instance

Database extents

Maximum per dictionary managed tablespace

4 GB * physical block size (with K/M modifier); 4 GB (without K/M modifier)

Database extents

Maximum per locally managed (uniform) tablespace

2 GB * physical block size (with K/M modifier); 2 GB (without K/M modifier)

Database file size

Maximum

Operating system dependent. Limited by maximum operating system file size; typically 2^22 or 4 MB blocks

MAXEXTENTS

Default value

Derived from tablespace default storage or DB_BLOCK_SIZE initialization parameter

MAXEXTENTS

Maximum

Unlimited

Redo Log Files

Maximum number of logfiles

Limited by value of MAXLOGFILES parameter in the CREATE DATABASE statement

Control file can be resized to allow more entries; ultimately an operating system limit

Redo Log Files

Maximum number of logfiles per group

Unlimited

Redo Log File Size

Minimum size

4 MB

Redo Log File Size

Maximum Size

Operating system limit; typically 2 GB

Tablespaces

Maximum number per database

64 K

Number of tablespaces cannot exceed the number of database files because each tablespace must include at least one file

Bigfile Tablespaces

Number of blocks

A bigfile tablespace contains only one datafile or tempfile, which can contain up to approximately 4 billion ( 2^32 ) blocks. The maximum size of the single datafile or tempfile is 128 terabytes (TB) for a tablespace with 32 K blocks and 32 TB for a tablespace with 8 K blocks.

Smallfile (traditional) Tablespaces

Number of blocks

A smallfile tablespace is a traditional Oracle tablespace, which can contain 1022 datafiles or tempfiles, each of which can contain up to approximately 4 million (2^22) blocks.

External Tables file

Maximum size

Dependent on the operating system.

An external table can be composed of multiple files.

From:

http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/limits002.htm#REFRN0042

每个数据文件最多只能包含2^22-1个数据块。这个限制是由于Oracle的Rowid中使用22位来代表Block号,这22位最多只能代表2^22-1个数据块。这个限制也就直接导致了每个数据文件的最大允许大小。

在2K Block size下,数据文件最大只能达到约8G;

在8K Block size 下, 数据文件最大只能达到约4*8G;

在32K Block size下,数据文件最大只能达到约16*8G。.

A bigfile tablespace contains only one datafile or tempfile, which can contain up to approximately 4 billion ( 232 ) blocks. The maximum size of the single datafile or tempfile is 128 terabytes (TB) for a tablespace with 32 K blocks and 32 TB for a tablespace with 8 K blocks.

Bigfile tablespace 只允许一个数据文件,在大文件表空间下,Oracle使用32位来代表Block号, 每个文件最多可以容纳4G(2^32)个Block。那么也就是说当Block_size为2k时,数据文件可以达到8T。 当Block_size为8k时,数据文件可以达到32T。 当block_size 为32K时,数据文件可以达到128T。

一般不建议把单个数据文件建的太大。 因为太大的话,如果某个数据文件出现问题,恢复起来费时较长。

一般都是把单个数据文件设成8G一个,如果表空间较大的话,可以多弄几个数据文件。 在上面的表格里也提到了。 单个表空间最大支持1022个数据文件。所以数据文件是绝对够用的。

至于为什么设置8G,不是清楚,以前问过同事,说是和EXT3 的文件系统有关系。 刚才在metalink上也搜了一下, 想找到相关的官方证据。搜了半天,没有搜到相关的理论支持。 不过单个数据文件8G 是很通用的设法。 以后找到相关理论支持在补充。

------------------------------------------------------------------------------

Blog: http://blog.csdn.net/tianlesoftware

网上资源: http://tianlesoftware.download.csdn.net

相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1 群:62697716(满); DBA2 群:62697977(满)

DBA3 群:62697850   DBA 超级群:63306533;

聊天 群:40132017

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

Oracle 数据文件(Datafile ) 大小 限制 说明相关推荐

  1. Oracle数据文件的备份与恢复

    Oracle数据文件的备份与恢复 数据文件中包含数据库中的用户数据或应用程序数据.是oracle体系结构中非常重要要的一部分.因此对数据文件的备份与恢复时每一位DBA的必修课. 本次测试的思路是分为4 ...

  2. mysql数据库表空间压缩,表空间中有数据也可以压缩表空间(数据文件)大小!!...

    首先说声抱歉,在 中提出以下观点,经过研究请教,发现观点都是错误的,在这里给予更正. 3.得知表空间中有数据不能resize数据文件的大小:要想resize数据文件,那么表空间中必须没有数据. 更正后 ...

  3. oracle 文件大小为零,windows Oracle数据文件大小为0的恢复case

    本站文章除注明转载外,均为本站原创: 转载自love wife love life -Roger 的Oracle技术博客 本文链接地址: windows Oracle数据文件大小为0的恢复case 一 ...

  4. oracle物理文件删除如何恢复,Oracle数据文件物理删除后的恢复

    做系统管理的都是这样,难免会误删文件,某天要是把某个Oracle数据文件删除,那该如何恢复呢?(这里数据库是OPEN的,并且未关闭) 建立测试表空间 创建测试用户 插入测试数据 删除数据文件 恢复数据 ...

  5. oracle查看数据被谁删掉了,oracle数据文件被误删恢复

    ----数据文件被误恢复方法有两种.如果发现数据文件被删除咯,此时数据库是open状态,可以直接通过句柄恢复,如果发现数据库已经宕机了,就只能用其他方式咯.具体方法,如下: 1.利用句柄恢复数据文件 ...

  6. oracle数据文件被误删或损坏故障处理

    oracle数据文件被删或损坏故障描述: 数据库数据文件由于误操作被删除掉或由于磁盘坏掉导致数据文件损坏,数据库每十分钟读取损坏数据库文件失败后会提示: ORA-01116: 打开数据库文件 78 时 ...

  7. oracle 查询数据库io,查看Oracle数据文件和磁盘i/o情况

    查看Oracle数据文件和磁盘i/o情况 --查询当前用户使用了多少还原表空间 select d.username,c.name,b.writes from v$transaction a,v$rol ...

  8. 数据文件头块保留大小、ROWID、数据文件最大大小等数据库限制的说明

    学习自EYGLE循序渐进ORACLE及官方文档. 本地管理表空间中设置不同大小的db_block_size时数据文件头保留空间对应如下: db_block_size=2KB,文件头保留32个数据块,即 ...

  9. 在HPUX中IA64和PA-RISC两种架构下Oracle数据文件

    最近刚购回一台IA64的HP小机,装好Oracle后,经测试可以把PA-RISC架构下的oracle数据文件直接copy 过来使用.之前有看过一个在HP小机上RAC的异构就是说PA-RISC和IA64 ...

最新文章

  1. Hexo+OSChina(码云)+git 搭建个人博客
  2. Ansible-playbook yum安装nginx1.20.1
  3. 学习OpenCV2——卡尔曼滤波(KalmanFilter)详解
  4. mysql 页级锁写法_MYSQL中表级锁、行级锁、页级锁介绍
  5. python : 将txt文件中的数据读为numpy数组或列表
  6. 3-1-Servlet技术
  7. 用户'MYCOMPUTER\ASPNET' 登录失败”的解决方法
  8. opencv中的图像拼接
  9. mysql数据库显示中文_数据库-mysql中文显示问题
  10. DHTMLX.Suite.Pro 7.3.1
  11. 关于 VB.NET 中 Obsolete 特性的问题
  12. 仿写“跳一跳”微信小游戏
  13. python 类的执行中保部存值_python 生成有效的四要素
  14. ie 无人操作自动关闭_为什么ie11打开未响应然后闪退_win10ie打开就未响应自动关闭的解决方法...
  15. 面试后HR让你等通知的真相
  16. 模糊照片怎么修复清晰?快来看看这两个方法
  17. 交换游戏 (记忆化搜索 状压)
  18. 人工智能(机器学习、深度学习等)专业名词、代码参数解释(持续更新)
  19. appemit使用mpvPlayer在谷歌chrome浏览器播放RTSP
  20. golang 递归方式解析json串

热门文章

  1. citrix xendesktop edition
  2. UIWebView控件的简易浏览器小案例
  3. Android中关于Volley的使用(二)加载Json数据
  4. redis源码dict.c simple reading
  5. TouchJSON的简单使用
  6. MySQL中NOT IN语句对NULL值的处理
  7. Puppet基础篇5-如何建立master和agent之间的认证关系
  8. 注册cn域名应该注意些什么
  9. SQL Server补丁版本的检查
  10. Java设计模式之工厂方法模式与抽象工厂模式