oracle統計資訊(四)
順便貼上10個level的動態取樣介紹
Level 0: Do not use dynamic sampling.
Level 1: Sample all tables that have not been analyzed if the following criteria are met: (1) there is at least 1 unanalyzed table in the query; (2) this unanalyzed table is joined to another table or appears in a subquery or non-mergeable view; (3) this unanalyzed table has no indexes; (4) this unanalyzed table has more blocks than the number of blocks that would be used for dynamic sampling of this table. The number of blocks sampled is the default number of dynamic sampling blocks (32).
Level 2: Apply dynamic sampling to all unanalyzed tables. The number of blocks sampled is two times the default number of dynamic sampling blocks.
Level 3: Apply dynamic sampling to all tables that meet Level 2 criteria, plus all tables for which standard selectivity estimation used a guess for some predicate that is a potential dynamic sampling predicate. The number of blocks sampled is the default number of dynamic sampling blocks. For unanalyzed tables, the number of blocks sampled is two times the default number of dynamic sampling blocks.
Level 4: Apply dynamic sampling to all tables that meet Level 3 criteria, plus all tables that have single-table predicates that reference 2 or more columns. The number of blocks sampled is the default number of dynamic sampling blocks. For unanalyzed tables, the number of blocks sampled is two times the default number of dynamic sampling blocks.
Levels 5, 6, 7, 8, and 9: Apply dynamic sampling to all tables that meet the previous level criteria using 2, 4, 8, 32, or 128 times the default number of dynamic sampling blocks respectively.
Level 10: Apply dynamic sampling to all tables that meet the Level 9 criteria using all blocks in the table.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13177610/viewspace-688101/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【統計資訊】Oracle統計資訊Oracle
- ORACLE表統計資訊與列統計資訊、索引統計資訊Oracle索引
- Oracle收集統計資訊Oracle
- 【統計資訊】Oracle常用的收集統計資訊方式Oracle
- Oracle 統計資訊介紹Oracle
- 修改oracle 的統計資訊Oracle
- oracle 統計資訊檢視與收集Oracle
- 【STATS】Oracle遷移表統計資訊Oracle
- 【SCRIPT】Oracle統計資訊相關SQLOracleSQL
- [統計資訊系列7] Oracle 11g的自動統計資訊收集Oracle
- 【ASK_ORACLE】Oracle如何恢復舊的統計資訊Oracle
- Oracle統計資訊的收集和維護Oracle
- Oracle運維指令碼-收集統計資訊Oracle運維指令碼
- Oracle 統計資訊相關命令彙總Oracle
- Oracle錶的歷史統計資訊檢視Oracle
- Oracle優化案例-擴充套件統計資訊(十四)Oracle優化套件
- 【STAT】Oracle 表統計資訊被鎖,如何建立索引Oracle索引
- 【STATS】Oracle匯入匯出優化器統計資訊Oracle優化
- ORACLE19c新特性-實時統計資訊收集Oracle
- Oracle 9i統計資訊備份與恢復Oracle
- 【TUNE_ORACLE】定製化收集統計資訊SQL參考OracleSQL
- 【DBMS_STATUS】Oracle控制優化器統計資訊的使用Oracle優化
- Oracle優化案例-統計資訊對執行計劃的影響(十三)Oracle優化
- 【統計資訊】全面檢視錶所有統計資訊SQLSQL
- 【統計資訊】如何備份和還原統計資訊
- 【TUNE_ORACLE】檢查統計資訊是否過期SQL參考OracleSQL
- 成為MySQL DBA後,再看ORACLE資料庫(十四、統計資訊與執行計劃)MySqlOracle資料庫
- Oracle 11g系統自動收集統計資訊的一些知識Oracle
- 收集統計資訊方案
- MySQL統計資訊系列MySql
- 【TUNE_ORACLE】檢視錶,列和索引的統計資訊SQL參考Oracle索引SQL
- PostgreSQL DBA(10) - 統計資訊SQL
- SQL Server 更新統計資訊SQLServer
- 收集全庫統計資訊
- Oracle資料遷移後由列的直方圖統計資訊引起的執行計劃異常Oracle直方圖
- 微課sql最佳化(3)、統計資訊收集(2)-如何收集統計資訊SQL
- 微課sql最佳化(8)、統計資訊收集(6)-統計資訊查詢SQL
- 6 收集資料庫統計資訊資料庫
- Oracle實現統計Oracle