延遲段建立deferred_segment_creation導致EXP-00003

來源:互聯網
上載者:User

deferred_segment_creation導致EXP-00003
在11g的版本新特性,為了避免浪費資源,當建立非分區的空表的時候會延遲建立segment,也包括該表相關對象LOBS和INDEX.
官方文檔解釋:DEFERRED_SEGMENT_CREATIONspecifies the semantics of deferred segment creation. If set totrue, then segments for non-partitioned tables and their dependent objects (LOBs, indexes) will not be created until the first row is inserted into the table.
也是由於該新特性導致通過EXP匯出的時候出現'EXP-00003: 未找到段 (0,0) 的儲存定義'
sql>show parameter deferred_segment_creation;
deferred_segment_creation            boolean     TRUE
解決方案:
alter system set deferred_segment_creation=false scope=both;
alter table <tname> allocate extent;然後再重新匯出.
 
在11.2.0.1上更加由於該特性導致引發一個BUG 9285196(METALINK DOC ID:9285196.8)
使用inserts as select  語句插入資料到一個非PARTITION表中會非常慢
解決辦法:
插入前先分配SEGMENT
alter table <tname> allocate extent;
 
METALINK原文:
Slower inserts as select into a non-partitioned table ,
especially if the select involves reading many rows or an expensive join.
 
This fix changes the behavior. such that the segments will be allocated
regardless if the INSERT inserts rows or not.
 
Workaround
Materialize segments for the table before issuing the insert as select.
'alter table <tname> allocate extent;' will materialize segments for the
table and its dependent objects like indexes and lobs.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.