Oracle 视图 V$INDEX_USAGE_INFO 官方解释,作用,如何使用详细说明
本站中文解释
V$INDEX_USAGE_INFO(索引使用信息视图)用来查看过去一个月之内索引的创建、保护、更改等操作的次数和操作的时间,可以根据查询得到的信息分析索引的使用状况,并确定索引的优化措施。
具体使用:
首先,进入SQLPlus命令行:
SQL> SELECT *
FROM v$index_usage_info;
以上代码将列出索引使用情况信息放回。
可以通过限制 WHERE子句 对索引使用信息分类进行查询,例子:
SQL> SELECT *
FROM v$index_usage_info
WHERE creation_count > 0;
以上代码将查询所有已创建索引的详细信息。
官方英文解释
V$INDEX_USAGE_INFO
keeps track of index usage since the last flush. A flush occurs every 15 minutes. After each flush, ACTIVE_ELEM_COUNT
is reset to 0 and LAST_FLUSH_TIME
is updated to the current time.
Column | Datatype | Description |
---|---|---|
|
|
Indicates whether the index usage statistics are enabled. Possible values:
|
|
|
Indicates the type of collection used for the index usage statistics. Possible values:
|
|
|
The number of active indexes since the last flush |
|
|
The number of index entries allocated |
|
|
The maximum number of active indexes that can be tracked |
|
|
Number of successful flushes since the database started |
|
|
Cumulative elapsed time taken to complete the index usage statistics flush since the database start |
|
|
The time of the last flush |
|
|
Status messages, if any. Flush errors are reported here. |
|
|
The ID of the container to which the data pertains. Possible values include:
|
See Also:
“DBA_INDEX_USAGE”