首页 > 其他 > 详细

查询无效对象 及 重新编译

时间:2016-01-13 12:25:10      阅读:189      评论:0      收藏:0      [点我收藏+]
-- invalid object statistics:
select owner, object_type, status, count(*) 
from dba_objects
where status=‘INVALID‘
group by owner, object_type, status 
order by owner, object_type;

-- select invalid object and compile SQL.
select owner, object_name, object_type, status,
‘alter ‘ || object_type || ‘ ‘ || object_name||‘ Compile;‘as sql
from dba_objects
where status=‘INVALID‘
order by 1, 2,3;

查询无效对象 及 重新编译

原文:http://www.cnblogs.com/krisy/p/5126773.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!