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


关于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。
看来在该版本中的限制还是极其严格的。

相关内容