检查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='';
------道不行,乘桴浮于海!------
------欲讷于言,而敏于行!-------