數據泵導入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