DBA_TAB_COL_STATISTICS

2024-04-19 08:42:49  Updated

Purpose

The DBA_TAB_COL_STATISTICS view displays the column statistics and histograms on all tables of the database.

Note

This view is introduced since OceanBase Database V3.2.1.

  • ALL_TAB_COL_STATISTICS

  • USER_TAB_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 where the column belongs.
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.
LAST_ANALYZED DATE NO The date when the column was analyzed the last time.
SAMPLE_SIZE NUMBER NO The sample size during analysis.
GLOBAL_STATS VARCHAR2(3) NO
  • YES: indicates that the statistics are directly collected or incrementally maintained.
  • NO: other cases.
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.
SCOPE VARCHAR2(7) NO The effective scope of the statistics.

Contact Us