查看当前无效对象

select *
from  dba_objects t
where t.status = 'INVALID' order by 1;

编译无效对象:

有两种方式:

1、执行sql查询结果:

select  'alter  '||object_type||'   '||owner||'.'||object_name||'   compile;'
from  dba_objects t
where t.status = 'INVALID' order by 1;

2、脚本编译:

sqlplus / as sysdba @?/rdbms/admin/utlrp.sql

文章来源: Lucifer三思而后行

https://www.modb.pro/db/134160

最后修改:2021 年 11 月 14 日
如果觉得我的文章对你有用,请随意赞赏