标签:view lte sele warning mic func stat 判断 type
在使用数据泵进行模式级别导入导出时,导出成功后进行数据导入。出现报错:
可以看到存储过程对象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;
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
标签:view lte sele warning mic func stat 判断 type
原文地址:https://www.cnblogs.com/plutozzl/p/13329092.html