spool ExecCompProc
select
spool off
@ExecCompProc
整理成一個存儲過程
Create Or Replace Procedure Zl_Compile_Invalid_Procedure As
Strsql Varchar
Begin
For x In (Select Object_Name From All_Objects Where Status =
Strsql :=
Begin
Execute Immediate Strsql;
Exception
When OTHERS Then dbms_output
End;
End Loop;
End;
執行
exec Zl_Compile_Invalid_Procedure;
如果要看到無法重編譯的過程的出錯信息
From:http://tw.wingwit.com/Article/program/Oracle/201311/18218.html