今天在做遷移資料庫,從11.2.0.1遷移到11.2.0.4,用exp匯出乙個使用者下所有的物件,在做imp匯入的時候發現表少了很多,看日誌後分析是部分空表沒有匯出。在網上查了一下,發現是11g中新特性,當表無資料時,不分配segment,以節省空間。而使用exp命令時,無segment的表不會被匯出。
解決方案的文章:
最後我們採取了第三種:
用sql拼接乙個語句: select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;
:alter table bu***tinfo allocate extent;
alter table buscheckinfo allocate extent;
alter table homemember allocate extent;
alter table busassemblyinfo allocate extent;
alter table busassemblyhistory allocate extent;
alter table asgnempdutyplus allocate extent;
alter table jx_maintainpeopleld allocate extent;
alter table mcbusoilstandardgs allocate extent;
alter table mcbusoilstddetaildgs allocate extent;
alter table fdisarrsequencetimeld allocate extent;
alter table fdisarrsequencetmpld allocate extent;
解決ORACLE11g匯出表不全問題及匯入匯出
一 因oracle11對未占有空間記憶體的表 即未用過的表 不進行匯出,所以在進行exp時只匯出的表會不全。檢查user tables表發現沒有匯出的表的segment created屬性是no 解決辦法 1 可通過下面語句生成sql執行 select alter table table name ...
Oracle11G 命令列匯出表不全解決
因為oracle11g有乙個新特性,命令列exp只會匯出有分配過segment的表,如果資料庫中的表資料條數是0時不分配segment,所以就不能被匯出解決這個問題有很多方法,結合網上的和自己的實踐,給出我個人使用的解決方法,附帶一些小技巧.修改deferred segment creation 為...
Xcode 解決日誌列印不全問題
xcode 出了8.0後,執行日誌過長時會出現列印不全的問題.這可能是xcode優化的一項,不過這也給開發帶來的不必要的麻煩.下面的巨集定義可以解決這一問題.ifdef debug define nslog s,printf class p s d method s n s n self,nsstr...