oracle 11g exp預設空表不匯出 原因及解決方案

來源:互聯網
上載者:User

標籤:空表預設不匯出 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預設空表不匯出 原因及解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.