点击上方“IT那活儿”,关注后了解更多内容,不管IT什么活儿,干就完了!!!


日常运维工作中经常需要对数据做备份或倒换,其中也会经常性遇到一些问题。
01
问题描述
ORA-06502:PL/SQL:numeric or value error(数字或值错误)

02
报错分析
When both the NETWORK_LINK and the TABLES parameters are used, then only whole tables can be imported (not partitions of tables). Trying to import a partition of a table over a database link will fail with ORA-39203 (Partition selection is not supported over a network link) or in older releases with ORA-14100 (partition extended table name cannot refer to a remote object). The only exception to this is if TRANSPORTABLE=ALWAYS is also specified, in which case single or multiple partitions of a specified table can be imported. See also section 8.13. "ORA-39203 (Partition selection is not supported over a network link)" below.
在impdp导入之前开启如下events:
alter system set events 'sql_trace {process: pname = dw | process: pname = dm} level=12';alter system set events '6502 trace name errorstack level 10';
执行impdp命令,并追加TRACE=1ff0300 METRICS=Y LOGTIME=ALL参数,检查相关日志。
尝试一:不使用DB LINK,直接在源库导出对应报错对象的PUMP文件,之后在19C环境直接导入12C的导出的PUMP文件,看问题是否依然存在; 尝试二:如果尝试一中问题依然存在,导入时追加EXCLUDE=STATISTICS,看问题是否依然存在; 尝试三:除了有问题的表和分区,其他的分区表,使用相同的impdp 语法,是否能成功导入。
03
问题总结
end
本文作者:冯俊鸿
本文来源:IT那活儿(上海新炬王翦团队)

文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




