exp導出數據空表處理
exp aa/aa@orcl file=D:\.....
導出空表數據
1.select 'alter table '||table_name||' allocate extent;' from user_tables where SEGMENT_CREATED='NO';查出空表
然後往空表裏面插入數據,導出後在刪除
2.配置環境
alter system set deferred_segment_creation=false scope=both;
這個只能導出配置後的空表,也就是配置前的空表是導不出來的!
3.select 'alter table '||table_name||' allocate extent;' from user_tables where SEGMENT_CREATED='NO';查出空表 爲空表分配空間
查詢出空表然後執行查詢的結果
然後在exp aa/aa@orcl file=D:\AA.DMP就可以一起導出空表
imp aa/aa file=d:\... 導入數據
exp 導出的數據可以導入到 不同表空間的不同用戶中
導出空表數據
1.select 'alter table '||table_name||' allocate extent;' from user_tables where SEGMENT_CREATED='NO';查出空表
然後往空表裏面插入數據,導出後在刪除
2.配置環境
alter system set deferred_segment_creation=false scope=both;
這個只能導出配置後的空表,也就是配置前的空表是導不出來的!
3.select 'alter table '||table_name||' allocate extent;' from user_tables where SEGMENT_CREATED='NO';查出空表 爲空表分配空間
查詢出空表然後執行查詢的結果
然後在exp aa/aa@orcl file=D:\AA.DMP就可以一起導出空表
imp aa/aa file=d:\... 導入數據
exp 導出的數據可以導入到 不同表空間的不同用戶中
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.