您好,欢迎访问一九零五行业门户网

关于Oracle eXpress Edition 数据文件的限制

关于oracle express edition 数据文件的限制在oracle xe版的官方文档中对其限制说明如下:1. express edition is limited to a s
关于oracle express edition 数据文件的限制
在oracle xe版的官方文档中对其限制说明如下:
1. express edition is limited to a single instance on any server;
2. express edition may be installed on a multiple cpu server, but may only be executed on one processor in any server;
3. express edition may only be used to support up to 4gb of user data (not including express edition system data);
4. express edition may use up to 1 gb ram of available memory.
其中第3项说明支持的用户数据为4gb(不包括系统数据),测试如下:
c:\documents and settings\user>sqlplus / as sysdba
sql*plus: release 9.2.0.1.0 - production on 星期日 6月 6 10:44:37 2010
copyright (c) 1982, 2002, oracle corporation.  all rights reserved.
连接到:
oracle database 10g express edition release 10.2.0.1.0 - production
jcq0> select * from v$dbfile;
     file#
----------
name
--------------------------------------------------------------------------------
         4
e:\oraclexe\oradata\xe\users.dbf
         3
e:\oraclexe\oradata\xe\sysaux.dbf
         2
e:\oraclexe\oradata\xe\undo.dbf
         1
e:\oraclexe\oradata\xe\system.dbf
jcq0> alter database datafile 4 resize 5g;
alter database datafile 4 resize 5g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> create tablespace test datafile 'e:\oraclexe\oradata\xe\test01.dbf' size 4g;
表空间已创建。
jcq0> alter database datafile 5 resize 5g;
alter database datafile 5 resize 5g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> alter tablespace add datafile 'e:\oraclexe\oradata\xe\test02.dbf' size 5g;
alter tablespace add datafile 'e:\oraclexe\oradata\xe\test02.dbf' size 5g
                 *
error 位于第 1 行:
ora-02140: 无效的表空间名
jcq0>  alter tablespace test
  2  add datafile 'e:\oraclexe\oradata\xe\test02.dbf' size 5g;
 alter tablespace test
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> alter tablespace test
  2  add datafile 'e:\oraclexe\oradata\xe\test02.dbf' size 4g;
alter tablespace test
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> alter tablespace test
  2  add datafile 'e:\oraclexe\oradata\xe\test02.dbf' size 1g;
alter tablespace test
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> create tablespace test2 'e:\oraclexe\oradata\xe\test201.dbf' size 4g;
create tablespace test2 'e:\oraclexe\oradata\xe\test201.dbf' size 4g
                        *
error 位于第 1 行:
ora-02180: 无效的 create tablespace 选项
jcq0> create tablespace test2 datafile 'e:\oraclexe\oradata\xe\test201.dbf' size
4g;
create tablespace test2 datafile 'e:\oraclexe\oradata\xe\test201.dbf' size 4g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> create tablespace test2 datafile 'e:\oraclexe\oradata\xe\test201.dbf' size
1g;
create tablespace test2 datafile 'e:\oraclexe\oradata\xe\test201.dbf' size 1g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> -----database excluing system tablespace is 4gb--------------
jcq0> select sum(bytes)/1024/1024/1024 from dba_data_files;
sum(bytes)/1024/1024/1024
-------------------------
                   4.9375
jcq0> alter database datafile 1 resize 4g;
alter database datafile 1 resize 4g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0> alter database datafile 1 resize 2g;
alter database datafile 1 resize 2g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
jcq0>  alter database datafile 2 resize 2g;
数据库已更改。
jcq0>
jcq0> alter database datafile 3 resize 2g;
alter database datafile 3 resize 2g
*
error 位于第 1 行:
ora-12952: 请求超出了允许的最大数据库大小 4 gb
在新建一个大小为4gb的表空间后,无法为该表空间添加新的数据文件,系统表空间无法resize,但是undo表空间可以resize。
看来在该版本中的限制还是极其严格的。

其它类似信息

推荐信息