ORA-39082:
Object type string created with compilation warnings
Cause:
The object in the SQL statement following this error was created with compilation errors. If this error occurred for a view, it is possible that the base table of the view was missing.
Action:
This is a warning. The object may have to be recompiled before being used.
 
During import following error comes
ORA-39082: Object type ALTER_FUNCTION:FUNCTION_NAME created with compilation warnings
 
Workaround:
Recompile the invalid objects:
 \\\
 
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')
/
 
\\\
ALTER FUNCTION FUNCTION_NAME COMPILE;
 
or
 
exec dbms_utility.compile_schema(‘SCHEMA_NAME’);
 
or
 
Execute the Oracle-supplied utility to compile invalid objects globally:
Login as sys with SQLPLUS:
 
Sqlplus “/as sysdba”
 
SQL> @ORACLE_HOME/rdbms/admin/utlrp