ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 查检无效对象并编译使其生效

查检无效对象并编译使其生效

原创 Linux操作系统 作者:xilangxiangwa 时间:2010-08-11 10:22:05 0 删除 编辑
column object_name format a40;
set heading off;
select 'alter '||object_type||' '||object_name||' compile;'
from user_objects
where status = 'INVALID'
ORDER BY object_type;
spool d:\spool_text.sql;
/
spool off;
@d:\spool_text.sql;
/

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10595277/viewspace-670718/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 检查数据库空间
请登录后发表评论 登录
全部评论

注册时间:2008-01-18

  • 博文量
    71
  • 访问量
    411422