Oracle11g 會遇到這樣的問題,用exp整庫導(dǎo)出的時候,會遇到這樣的問題,庫里的空表沒辦法導(dǎo)出
select * from all_all_tables aa where aa.owner='User名大寫' ---查看用戶下所有表
select * from all_tables t where t.owner = 'User名大寫' and t.num_rows = 0;--查看用戶下所有空表
好了,下面是處理方法腳本:
在命令窗口運(yùn)行:
set heading off;
set echo off;
set feedback off;
set termout on;
spool D:\allocate.sql;
Select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;
spool off;
運(yùn)行完成后,把allocate.sql再在命令窗口執(zhí)行一次,然后就可以用exp語句了,這樣空表就能被導(dǎo)出來了