ORA-3214 When Creating a Tablespace [ID 153869.1]

SQL> Create temporary tablespace temp02 tempfile  '/oracle/oradata/tjcshow/temp02.dbf' size 1M;
Create temporary tablespace temp02 tempfile  '/oracle/oradata/tjcshow/temp02.dbf' size 1M
*
ERROR at line 1:
ORA-03214: File Size specified is smaller than minimum required

***Checked for relevance on 10-Dec-2012***


Problem Description
-------------------

You are using a database which is based on 8k database blocks.

You create a tablespace and get the following error message:

   SQL> create tablespace verysmall 
     2  datafile '/ora/ora901/oradata/V901/small01.dbf'
     3  size 50k;
   create tablespace verysmall datafile '/ora/ora901/oradata/V901/small01.dbf' 
   *
   ERROR at line 1:
   ORA-03214: File Size specified is smaller than minimum required


Solution Description
--------------------
1. Either increase the size for the datafile :
 
   SQL> create tablespace verysmall
     2  datafile '/ora/ora901/oradata/V901/small01.dbf'
     3  size 88k;

   Tablespace created.

-- OR --

2. Specify the size of the extent allocation:

   SQL> create tablespace verysmall
     2  datafile '/ora/ora901/oradata/V901/small01.dbf'
     3  size 34k
     4  uniform size 10k;

   Tablespace created.


NOTE:
=====
1. In the first example, the ORA-03214 gets raised for a tablespace size of of 80 kB or smaller.
   Large values below 88 kB are rounded upward.

2. In example 2, you may also get an ORA-03249 when using ASSM.
   ASSM was first introduced with Oracle 9i. 
   Starting with 10g Release 2, ASSM will be enabled by default when you create a new tablespace.

   SQL> create tablespace verysmall datafile size 32k uniform size 10k;
   create tablespace verysmall datafile size 32k uniform size 10k
   *
   ERROR at line 1:
   ORA-03249: Uniform size for auto segment space managed tablespace should have
   atleast 5 blocks

   Note that in the example, the datafile for the tablspace is not specified as the storage was on ASM.


Explanation
-----------
1. In 9i, when you create a tablespace, it is by default created as a Locally 
   Managed Tablespace with a minimum extent size of 64K, if the local management
   is system managed.

   Therefore, you must allocate size datafiles to 64 Kbytes + 3 blocks for the bitmap blocks.
   In solution 1, the datafile size could not be set less than 64K + (3*8k)= 88k

2. If you supply the UNIFORM parameter, size the datafiles to 3 blocks + one extent size
   minimum. It offers the means to allocate the first extent without problem.
 
   Therefore in solution 2, the datafile cannot be set less than 
   10K + (3*8k) = 34K

   SQL> create tablespace verysmall
     2  datafile '/ora/ora901/oradata/V901/small01.dbf'
     3  size 32k
     4  uniform size 10K;
   create tablespace verysmall
   *
   ERROR at line 1:
   ORA-03214: File Size specified is smaller than minimum required

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值