星空网 > 软件开发 > 数据库

Oracle 11g 导库导不出空表问题

Oracle11g 会遇到这样的问题,用exp整库导出的时候,会遇到这样的问题,库里的空表没办法导出

select * from all_all_tables aa where aa.owner='User名大写' ---查看用户下所有表

select * from all_tables t where t.owner = 'User名大写' and t.num_rows = 0;--查看用户下所有空表

好了,下面是处理方法脚本:

在命令窗口运行:

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;

 

运行完成后,把allocate.sql再在命令窗口执行一次,然后就可以用exp语句了,这样空表就能被导出来了

 




原标题:Oracle 11g 导库导不出空表问题

关键词:oracle

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

增长超80%!跨境电商在中东土豪的王国里淘金:https://www.kjdsnews.com/a/1444197.html
【Google Ads】谷歌广告投放常见问题详解(13):https://www.kjdsnews.com/a/1444198.html
TikTok“懒人锅”5天破1000万播放,“搓泥宝膏”获大量国外网友青睐:https://www.kjdsnews.com/a/1444199.html
外贸交易会常用语:https://www.kjdsnews.com/a/1444200.html
TikTok跨境MCN应如何申请?必看:https://www.kjdsnews.com/a/1444201.html
快手小店达人带货快分销开通及优势:https://www.kjdsnews.com/a/1444202.html
恐怖游轮2002 恐怖游轮2022:https://www.vstour.cn/a/365178.html
时尚电商平台Meesho拟融资3亿美元!:https://www.kjdsnews.com/a/1836524.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流