时间:2021-07-01 10:21:17 帮助过:3人阅读
[oracle@oracle ~]$ cat check_compile.sql set heading off; set feedback off; set echo off; Set lines 999; Spool run_invalid.sql select ‘alter ‘||decode(object_type, ‘VIEW‘, ‘VIEW‘,‘TRIGGER‘,‘TRIGGER‘, ‘PROCEDURE‘, ‘PROCEDURE‘, ‘FOUNCTION‘,‘FUNCTION‘, ‘PACKAGE‘,‘PACKAGE‘, ‘PACKAGE BODY‘, ‘PACKAGE‘, ‘MATERIALIZED VIEW‘) ||‘ ‘||owner||‘.‘||object_name||‘ compile ‘||‘;‘ from dba_objects where status like ‘INV%‘; spool off; set heading on; set feedback on; set echo on; @run_invalid.sql
本文出自 “清淼淡写” 博客,请务必保留此出处http://qingmiao.blog.51cto.com/7286083/1983274
在ORACLE中找出并批量编译失效的对象
标签:oracle;