How small a datafile can be?

一个数据文件最小能够到多小?以8K block size为例。

在Locally Managed Tablespace(LMT)中,如果是System Allocate的话。

1. LMT的数据文件需要1个block存储datafile header,还需要7个block存储bitmap block,这样是8个block,一共64K
2. 需要保证有至少一个extent的空间,在System Allocate中第一个extent会是64K

因此最小只能到128K。尝试缩小到更小的话,会碰到ORA-03214: File Size specified is smaller than minimum required 错误。

如果表空间创建成bigfile模式,那么最小只能到192K,因为bigfile tablespace还需要额外的8个block来存储bitmap block。

Leave a Reply

Your email address will not be published. Required fields are marked *