oracle impdp compilation,impdp Wrapped PLSQL package body invalid corrupted with error ORA-39082 & P...

一套11.2.0.4 环境做数据库迁移使用expdp生成dump文件,impdp的方法,确认原数据库中对象有效,多次尝试始终有package body无效, 用impdp SQLFILE生成的SQL DDL发现是WRAPED 加密后的。 这里简单记录

导入时提示

ORA-39082 Object type PACKAGE_BODY:created with compilation warnings.

SQL> alter package xx.xx compile body;

Warning: Package Body altered with compilation errors.

SQL> show error

LINE/COL ERROR

——– —————————————————————–

0/0 PLS-753: malformed or corrupted wrapped unit

MOS中确认在11.2.0.4-12.2版本存在的Bug 18881811 Data Pump Import of Wrapped PLSQL Corrupts the Body,

This problem is introduced in 11.2.0.4 and 12.1.0.2 data pump import.

Importing a dumpfile containing a wrapped package (or other PLSQL source) that has the SQL

terminator character ‘/’ as the first or last character of any line of the wrapped text raises a PLSQL error.

触发是当sql中有‘/’开头或结尾的字符时,impdp创建损毁。这个案例中分析发现确实存在注释语句有’/‘结尾。 修复方法目前是导入后找原始DDL sql 手动创建。

打赏

8732971891f4ba05583674ca6b8145ac.png微信扫一扫,打赏作者吧~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值