Oracle 视图 ALL_TAB_PENDING_STATS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_TAB_PENDING_STATS视图,位于SYS视图空间,提供数据字典中的统计信息,用于显示所有具有统计信息等待实施的表或索引。
此视图包含以下列:
OWNER:存储表或索引的拥有者。
TABLE_NAME:表或索引的名称。
PENDING_STATS:指示是否存在等待实施的统计信息。
使用方法:
1.查询所有有待实施统计信息的表和索引:
SELECT owner, table_name FROM all_tab_pending_stats WHERE pending_stats = ‘YES’;
2.从ALL_TAB_PENDING_STATS视图中删除无效的PENDING_STATS:
DELETE FROM all_tab_pending_stats WHERE pending_stats = ‘NO’;
3.检查是否存在还未实施的统计信息:
SELECT COUNT(*) FROM all_tab_pending_stats;
官方英文解释
ALL_TAB_PENDING_STATS
describes pending statistics for tables, partitions, and subpartitions accessible to the current user.
Related Views
DBA_TAB_PENDING_STATS
describes pending statistics for tables, partitions, and subpartitions in the database.USER_TAB_PENDING_STATS
describes pending statistics for tables, partitions, and subpartitions owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
| Owner of the table | |
|
| Name of the table | |
|
| Name of the partition | |
|
| Name of the subpartition | |
|
| Number of rows | |
|
| Number of blocks | |
|
| Average row length | |
|
| Number of In-Memory Compression Units (IMCUs) in the table. | |
|
| Number of In-Memory blocks in the table. | |
|
| Scan rate for the table in megabytes per second. This statistic is only relevant or meaningful for external tables. | |
|
| Sample size | |
|
| Time of last analyze operation |
See Also:
“DBA_TAB_PENDING_STATS”
“USER_TAB_PENDING_STATS”
编辑:568数据
标签:统计信息,视图,索引,是否存在,英文