Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我对 Oracle 中的表进行大量修改。有没有办法获得不再编译的软件包列表?
我可以轻松地从我更改的表列表中获取包列表,但我想知道是否有可能获取所有未编译的内容。
你可以这样做
select 'alter '||decode(object_type,'PACKAGE BODY','PACKAGE',object_type)|| ' '||object_name||' compile '||decode(object_type,'PACKAGE BODY','body;',';') from user_objects where status = 'INVALID'