⑴ 在什么情况下,oracle会认为已经统计的信息失效
比如说一个表在昨天分析的,根据分析后结果看到当时的记录条数是1000条,而从DBA_TAB_MODIFICATIONS表种看到的inserts为10,updates为10,deletes为10,inserts+updates+deletes=30
30/1000*100%=3%,所以不用对这个表分析
Note that both gather stale and gather auto require monitoring. If you issue the “alter table xxx monitoring” command, Oracle tracks changed tables with the dba_tab_modifications view. Below we see that the exact number of inserts, updates and deletes are tracked since the last analysis of statistics.
SQL> desc dba_tab_modifications;
Name Type
--------------------------------
TABLE_OWNER VARCHAR2(30)
TABLE_NAME VARCHAR2(30)
PARTITION_NAME VARCHAR2(30)
SUBPARTITION_NAME VARCHAR2(30)
INSERTS NUMBER
UPDATES NUMBER
DELETES NUMBER
TIMESTAMP DATE
TRUNCATED VARCHAR2(3)
The most interesting of these options is the gather stale option. Because all statistics will become stale quickly in a robust OLTP database, we must remember the rule for gather stale is > 10% row change (based on num_rows at statistics collection time).
⑵ 指标数理统计前如何筛选无效数据
中一键查询无效数据的操禅答作方法
1、打开Excel表格,并录入一些数据贺让慧;
2、选中需要进行筛选的数据后,依次点击“数据”“数据有效性”;
3、在对话框中输入验证条件,已找出低于450的数滑掘字为例;(注:验证条件应与要找寻的数据相悖)
4、最后,选取“圈释无效数据”即可。
以上就是小编给大家带来的全部内容,大家都学会了吗?
版权声明:本站部分文章和图片来源于网络,版权归原作者所有,如果侵犯你的版权,请发邮件,我们将及时删除!