oracle11g匯出空表,oracle11g匯出

來源:互聯網
上載者:User

oracle11g匯出空表,oracle11g匯出
deferred_segment_creation參數

該參數意思是當建立對象(如表),初始時沒有資料,是否立即建立segment。預設是true。這會導致在按使用者匯出時,沒有segment的對象不會匯出。

解決方案

首先執行下面的語句:

Select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 ;

執行完之後拷貝出查詢出來的組合的sql資料。

然後執行:

alter system set deferred_segment_creation=false; 

最後再執行拷貝出來的那些sql資料。



oracle11g匯出資料庫時怎設定把空表也匯出

1 將資料庫TEST完全匯出,使用者名稱system 密碼manager 匯出到D:\daochu.dmp中
exp system/manager@TEST file=d:\daochu.dmp full=y
2 將資料庫中system使用者與sys使用者的表匯出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
 
oracle11g匯出資料庫時怎設定把空表也匯出

看看這個文檔,一目瞭然

 

相關文章

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.