⑴ 在什麼情況下,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、最後,選取「圈釋無效數據」即可。
以上就是小編給大家帶來的全部內容,大家都學會了嗎?
版權聲明:本站部分文章和圖片來源於網路,版權歸原作者所有,如果侵犯你的版權,請發郵件,我們將及時刪除!