ORA-29339錯誤解決辦法
SQL> create tablespace test01 datafile 'e:\oracle\testing01.dbf' size 10m
2 blocksize 4k;
create tablespace test01 datafile 'e:\oracle\testing01.dbf' size 10m
blocksize 4k
ORA-29339: 表空間塊大小 4096 與配置的塊大小不比對
SQL> show parameter db_block_size;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_block_size integer 8192
檢視資料庫的标準資料塊大小
SQL> select component,current_size
2 from v$sga_dynamic_components;
COMPONENT CURRENT_SIZE
---------------------------------------------------------------- ------------
shared pool 188743680
large pool 62914560
java pool 54525952
streams pool 0
DEFAULT buffer cache 167772160
KEEP buffer cache 8388608
RECYCLE buffer cache 8388608
DEFAULT 2K buffer cache 0
DEFAULT 4K buffer cache 0
DEFAULT 8K buffer cache 0
DEFAULT 16K buffer cache 12582912
DEFAULT 32K buffer cache 0
Shared IO Pool 0
ASM Buffer Cache 0
檢視是否設定了相應的非标準資料庫資料緩沖區大小
出現ORA-29339的原因是因為建立的表空間test01與該資料庫的标準塊大小不同,同時沒有
設定相應的非标準資料塊的資料緩沖區大小。
SQL> alter system set db_4k_cache_size=8m;
System altered
設定4kb非标準資料塊資料緩沖區大小
Tablespace created
設定相應的非标準資料塊資料緩沖區大小,以後再建立相應的非标準資料塊表空間
DEFAULT 4K buffer cache 8388608
檢視4kb非标準資料塊緩沖區大小