码迷,mamicode.com
首页 > 其他好文 > 详细

查询无效对象 及 重新编译

时间:2016-01-13 12:26:13      阅读:171      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!