about histogram(2)
dba_tab_col_statistics
根據yuang hong的文章,9i中無上述檢視,不過可以從dba_tab_col_statistics 檢視的程式碼中得知可用下面的語句檢視 9i的histogram type (注:10g與9i中histogram無大的變化).
注意xxx_tab_col_statistics中的column statistics和histogram infomation均取自ALL_TAB_COL_STATISTICS provides column statistics and histogram information
extracted from "ALL_TAB_COLUMNS" on page 2-124.
所以,<
select case when nvl(h.row_cnt,0) = 0 then 'NONE'
when (h.bucket_cnt > 255
or
(h.bucket_cnt > h.distcnt and h.row_cnt = h.distcnt
and h.density*h.bucket_cnt*2 <= 1))
then 'FREQUENCY'
else 'HEIGHT BALANCED'
end
from sys.hist_head$ h
where obj# = &object_id_for_the_table;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/94384/viewspace-600297/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- about histogram(1)Histogram
- Oracle 12c新特性 - Hybrid histogram 2OracleHistogram
- Oracle 12c新特性 - Top frequency histogram 2OracleHistogram
- [20170604]12c Top Frequency histogram 2Histogram
- Histogram總結Histogram
- [PT]Column Histogram StatisticsHistogram
- About HTMLHTML
- About interviewView
- About Personality
- About IndexDBIndex
- about bapiAPI
- About Enqueue:P1/P2/P3ENQ
- about datapump parallelParallel
- About Oracle WITH clauseOracle
- About Oracle LockOracle
- About post and get
- histogram與10053(zt)Histogram
- Histogram Investigation(轉自kamus)Histogram
- histogram一點研究(待整理)Histogram
- An example about git hookGitHook
- About Oracle HanganalyzeOracle
- All About PythonPython
- os staroge:about stripe
- error log about AIXErrorAI
- About SAP currency type
- about raw device[zt]dev
- elasticsearch 聚合之 date_histogram 聚合ElasticsearchHistogram
- elasticsearch 之 histogram 直方圖聚合ElasticsearchHistogram直方圖
- 3.4.1 About Quiescing a DatabaseUIDatabase
- 2.3.3.1 About Application MaintenanceAPPAINaN
- About the Oracle GoldenGate TrailOracleGoAI
- 04 - More about CSS PositionCSS
- The sence about Transaction in SpringSpring
- about materialized view and long(turn)ZedView
- About. Compatibility
- About PicoContainer in JdonframeworkAIFramework
- About Static Data Dictionary ViewsView
- Narrative writing about a person