数据泵导入ORA-39082报错解决


在使用数据泵进行模式级别导入导出时,导出成功后进行数据导入。出现报错:

可以看到存储过程对象F_NUM编译报错。

  • 那么首先查看无效对象。
SYS@proe>col object_name for a30;
SYS@proe>select owner,object_name,object_type,status
from dba_objects
where status !='VALID'
and owner not in ('SYS','SYSTEM')  2    3    4  ;

  • 对这个无效对象执行编译。
SYS@proe>alter procedure new_scott.F_NUM compile;

Warning: Procedure altered with compilation errors.

编译无效对象方法:
view: alter view view_name compile;
function: alter function function_name compile;
procedure: alter procedure procedure_name compile;

  • 发现编译是不成功的,使用show error进行判断
SYS@proe>show errors procedure new_scott.F_NUM;
Errors for PROCEDURE NEW_SCOTT.F_NUM:

LINE/COL ERROR
-------- ------------------------------------------------
0/0      PL/SQL: Compilation unit analysis terminated
2/11     PLS-00201: identifier 'EMPLOYEES.EMPLOYEE_ID' must be declared





免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM