Oracle 视图 ALL_SUBPART_COL_STATISTICS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_SUBPART_COL_STATISTICS是Oracle数据库中的一个视图,可以提供有关分区表中单个列统计信息的详细信息。它显示列上各个近似分布值(等级)或精确值(细裂)的统计信息,以及该列上的一般统计信息(例如最小值、最大值、众数和均值)。
ALL_SUBPART_COL_STATISTICS的用途是一些查询优化技术,当可能有分区条件的时候,可以允许Oracle ORACLE知道数据字典中关于单个列分区的信息,这样它就可以找到最佳的查询计划。
使用ALL_SUBPART_COL_STATISTICS视图,用户可以了解每个分区表上的分区列的统计信息(最小值、最大值、众数和平均数),以及每个分区列上近似级别值(近似值)和细裂值(比例)的统计信息。例如:
SELECT *
FROM ALL_SUBPART_COL_STATISTICS
WHERE table_name = ‘MY_TABLE’
AND column_name = ‘MY_PARTITION_COLUMN’;
官方英文解释
ALL_SUBPART_COL_STATISTICS
describes column statistics and histogram information for subpartitions of partitioned objects accessible to the current user.
Related Views
-
DBA_SUBPART_COL_STATISTICS
provides this information for all subpartitions in the database. -
USER_SUBPART_COL_STATISTICS
provides this information for subpartitions of all partitioned objects owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the table |
|
|
|
Name of the table |
|
|
Table subpartition name |
|
|
|
Column name |
|
|
|
Number of distinct values in the column |
|
|
|
Low value in the column |
|
|
|
High value in the column |
|
|
|
If a histogram is available on If a histogram is not available on |
|
|
|
Number of NULLs in the column |
|
|
|
Number of buckets in histogram for the column |
|
|
|
Sample size used in analyzing this column |
|
|
|
Date on which this column was most recently analyzed |
|
|
|
|
|
|
|
Indicates whether statistics were entered directly by the user ( |
|
|
|
Describes some additional properties of the statistics. For example, if the value is |
|
|
|
Average length of the column (in bytes) |
|
|
|
Indicates existence/type of histogram:
|
See Also:
-
“DBA_SUBPART_COL_STATISTICS”
-
“USER_SUBPART_COL_STATISTICS”