解決 Oracle 11g 不能導出空表的問題

--解決 Oracle 11g 不能導出空表的問題數據庫

 

--執行下面語句,查詢數據庫中的空表,同時產生分配空間。把生成的結果複製出來並執行。table

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

--若是以上方法不行,可改用下面方法方法

select 'alter table '||table_name||' allocate extent(size 64k);' from tabs t where not exists (select segment_name from user_segments s where s.segment_name=t.table_name);數據

相關文章
相關標籤/搜索