检查oracle 表统计信息是否过期


 

--刷新数据库监控信息:
exec dbms_stats.flush_database_monitoring_info;

--过期状态查看:stale_stats 状态是否为“YES”
select owner,table_name,object_type,stale_stats,last_analyzed 
from dba_tab_statistics
where owner=''
and table_name='';

--过期原因
select table_owner,table_name,inserts,updates,deletes,timestamp 
from all_tab_modifications
where table_owner=''
and table_name='';


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM