执行sql脚本
select 'alter table ' || table_name || 'allocate extent;'
from user_tables
where num_rows = 0
or num_rows is null;

将查询出来的语句复制到一个新的sql窗口执行

再执行sql语句,查询出来第二列为YES
select table_name, segment_created
from user_tables where num_rows = 0 or num_rows is null;

再重新导入dmp文件,就不会出现少表的情况了
本文介绍了一种解决Oracle数据库中表缺失的方法,通过执行特定的SQL脚本来重新分配表空间,确保表的段创建成功,从而避免在重新导入dmp文件时出现表缺失的情况。
8412

被折叠的 条评论
为什么被折叠?



