DBA_PART_COL_STATISTICS

2025-11-19 10:08:13  Updated

Purpose

The DBA_PART_COL_STATISTICS view displays the column statistics and histograms on the partitions in the partitioned tables of the database.

Note

This view is introduced since OceanBase Database V3.2.1.

  • ALL_PART_COL_STATISTICS

  • USER_PART_COL_STATISTICS

Columns

Column Type Nullable? Description
OWNER VARCHAR2(128) NO The owner of the column.
TABLE_NAME VARCHAR2(128) NO The name of the table.
PARTITION_NAME VARCHAR2(128) NO The name of the partition.
COLUMN_NAME VARCHAR2(128) NO The name of the column.
NUM_DISTINCT NUMBER NO The number of distinct values in the column.
LOW_VALUE VARCHAR2(128) NO The minimum value of the column.
HIGH_VALUE VARCHAR2(128) NO The maximum value of the column.
DENSITY NUMBER NO The density of the column.
NUM_NULLS NUMBER NO The number of NULL values in the column.
NUM_BUCKETS NUMBER NO The number of buckets in the histogram on the column.
SAMPLE_SIZE NUMBER NO The sample size during analysis.
LAST_ANALYZED DATE NO The date when the column was analyzed the last time.
GLOBAL_STATS VARCHAR2(3) NO
  • YES: indicates that the statistics are directly collected.
  • NO: indicates that statistics are not collected or are deduced from the statistics of subpartitions.
  • USER_STATS VARCHAR2(3) NO Indicates whether the partition statistics are set by the user.
    NOTES VARCHAR2(80) NO Some additional properties.
    AVG_COL_LEN NUMBER NO The average length of the column.
    HISTOGRAM VARCHAR2(15) NO The type of the histogram.

    Contact Us