在impdp匯入報編譯錯誤ORA-39082的解決辦法

czxin788發表於2017-07-17
在用impdp匯入時,如果報編譯錯誤,如:ORA-39082: Object type ALTER_PROCEDURE:"CONTA"."PROC_CONTA_BALANCE_FZHKH" created with compilation warnings,可以用如下方法解決:

sys使用者檢視無效物件:
col object_name for a30;
select owner,object_name,object_type,status
from dba_objects
where status !='VALID'
and owner not in ('SYS','SYSTEM')
/


編譯無效物件:
view:    alter view view_name compile;
function:    alter function function_name compile;
procedure:   alter procedure procedure_name compile;

show error 的用法
編譯view出現問題:
 alter view view_name compile;
Warning:view view_name with compilation errors.

SQL>show errors view view_name
Errors for view view_name:

LINE/COL    ERROR
-----------    -------------------------
0/0               ORA---

參考:http://blog.csdn.net/sunjiapeng/article/details/19017781

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28916011/viewspace-2142172/,如需轉載,請註明出處,否則將追究法律責任。

相關文章