標籤:空表預設不匯出 oracle11g
在oracle11g中,每張表在起初建立時,預設是不分配區段給此對象。
當首次插入資料時,會分配對應的區段。
對應控制參數為 deferred_segment_creation=true
如果要保持跟低版本保持一致的屬性,可以設定此參數值為flase
alter system set deferred_segment_creation=false scope=both;
在後續建立的新表中,會預設分配區段。
如果參數值設定為true,即使在建立表時指定具體的儲存參數來擷取初始區段大小,也不會分配對應區段。
eg:
create table A_ALLOCAT_EXTENT
(
userno NUMBER,
username VARCHAR2(20 CHAR)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
SQL> select * from user_extents t where t.segment_name = ‘A_ALLOCAT_EXTENT‘;
no rows selected
在設定參數值為false後,需要把沒有分配區段的表,增加區段。
擷取沒有分區的表名:
select table_name from user_tables
minus
select segment_name from user_segments
然後執行分區語句進行分配:
alter table A_ALLOCAT_EXTENT allocate extent (size 8K); -- 大小自己定義
本文出自 “8016776” 部落格,請務必保留此出處http://8026776.blog.51cto.com/8016776/1595534
oracle 11g exp預設空表不匯出 原因及解決方案