Oracle 视图 ALL_PART_COL_STATISTICS 官方解释,作用,如何使用详细说明
本站中文解释
?
Oracle视图ALL_PART_COL_STATISTICS存储某分区表的每个分区的列的信息包括列的最小值、最大值、平均值等信息,可用于优化分区表的新数据进入较新的分区,实现更好的查询性能。
要使用ALL_PART_COL_STATISTICS视图,首先需要SQL修改权限,然后可以执行一个SELECT语句,查询某个表的分区信息,语法如下:
SELECT * FROM ALL_PART_COL_STATISTICS
WHERE table_schema = ‘Schema_name’
AND table_name = ‘table_name’
官方英文解释
ALL_PART_COL_STATISTICS
displays column statistics and histogram information for the table partitions accessible to the current user.
Related Views
DBA_PART_COL_STATISTICS
displays column statistics and histogram information for all table partitions in the database.USER_PART_COL_STATISTICS
displays column statistics and histogram information for the table partitions owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Owner of the partitioned table |
|
|
| Name of the table |
|
| Name of the table partition | |
|
| Name of the column | |
|
| 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 the column | |
|
| Date on which the column was most recently analyzed | |
|
|
| |
|
| Indicates whether statistics were entered directly by the user ( | |
|
| Describes some additional properties of the statistics. Possible values include:
This column can be used to determine whether synopses in the adaptive sampling format have been phased out entirely and purged properly. | |
|
| Average length of the column (in bytes) | |
|
| Indicates existence/type of histogram:
|
See Also:
“DBA_PART_COL_STATISTICS”
“USER_PART_COL_STATISTICS”