接着继续编译对象。
查看对象定义ddl: select dbms_metadata.get_ddl('OBJECT_TYPE','OBJECT_NAME','USERNAME') from dual;
编译无效对象: view: alter view view_name compile; function: alter function function_name compile;
sys用户查看无效对象: select owner,object_name,object_type,status from dba_objects where status !='VALID' and owner not in ('SYS','SYSTEM') /
show error 的用法: 编译view出现问题: alter view view_name compile; Warning:view view_name with compilation errors.
LINE/COL ERROR ----------- ------------------------- 0/0 ORA---