首页 > 数据库技术 > 详细

How can I check the last time stats was run on Oracle without using OEM

时间:2019-10-04 17:58:32      阅读:119      评论:0      收藏:0      [点我收藏+]

All of the following data dictionary tables have a LAST_ANALYZED column (replace * with USER/ALL/DBA as appropriate:

*_TABLES
*_TAB_PARTITIONS
*_TAB_SUBPARTITIONS
*_INDEXES
*_IND_PARTITIONS
*_IND_SUBPARTITIONS

(There‘s lots more in the histograms fields, but I‘m not going that deep.)

Conversely, ALL_TAB_MODIFICATIONS shows rows inserted/updated/deleted (or the timestamp on which a table/partition/subpartition was truncated) since it had optimizer statistics gathered.

How can I check the last time stats was run on Oracle without using OEM

原文:https://www.cnblogs.com/kakaisgood/p/11622562.html

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