Oracle 视图 V$EQ_MESSAGE_CACHE_STAT 官方解释,作用,如何使用详细说明
本站中文解释
ISTICS
Oracle视图V$EQ_MESSAGE_CACHE_STATISTICS是分析消息检索缓存使用情况的一种视图,其中包括缓存中消息的数量,用于在缓存中搜索消息的次数,从缓存中获取消息的次数等,用于监控消息检索缓存性能。
使用方法:
1. 运行以下查询来查看消息检索缓存的统计信息:
SELECT * FROM V$EQ_MESSAGE_CACHE_STATISTICS;
2. 根据查询结果选择合适的分析报告,用于分析消息检索缓存的使用情况,并根据情况实施改善措施,以优化消息检索缓存的性能。
官方英文解释
V$EQ_MESSAGE_CACHE_STAT
displays statistics about memory management for Transactional Event Queues (TEQs) in the Streams pool within the System Global Area (SGA). TEQs use the Streams pool in units of event queue partitions. Thus, columns of this view shows statistics at the event queue partition level. This view shows statistics across all TEQs.
Column | Datatype | Description |
---|---|---|
|
|
Number of evicted event queue partitions across all TEQs |
|
|
Number of event queue partitions pre-fetched by an AQ background process |
|
|
Number of event queue partitions unevicted by a foreground process, such as the dequeue process |
|
|
Number of event queue partitions stored as uncached |
|
|
Number of event queue partitions which are actively tracking dequeue rates |
|
|
Number of event queue partitions stored as cached |
|
|
Maximum event queue partition size seen till now, in terms of number of messages per event queue partition |
|
|
Minimum event queue partition size seen till now, in terms of number of messages per event queue partition |
|
|
Mean event queue partition size seen till now, in terms of number of messages per event queue partition |
|
|
Average number of event queue partitions evicted per second |
|
|
Average number of event queue partitions pre-fetched or unevicted per second |
|
|
Average time taken to evict one event queue partition (in milliseconds) |
|
|
Average time taken to un-evict one event queue partition (in milliseconds) |
|
|
Average ratio of number of foreground un-evictions versus background pre-fetch |
|
|
Average ratio of number of event queue partitions pre-fetched by background without dequeue attempt versus total number of event queue partitions prefetched |
|
|
An affinity switch is a change in dequeue instance for a TEQ-subscriber pair. A mandatory affinity switch is when there are local enqueues in the queue at the instance but no local dequeues present, so the dequeue affinity is switched to another instance for that TEQ-subscriber pair. This column shows the number of times mandatory affinity switches were attempted across all instances. Populated at the smallest instance ID only. |
|
|
Optional affinity switches are affinity switches that are not mandatory. Optional affinity switches are done for global load balancing across the Oracle Real Application Clusters (Oracle RAC) database. This column shows the number of times optional affinity switches were attempted across all instances. Populated at the smallest instance ID only. |
|
|
Percentage of |
|
|
Last average number of cached event queue partitions seen in TEQ memory manager horizon |
|
|
Last average memory of cached event queue partitions seen in TEQ memory manager horizon |
|
|
Last average number of event queue partitions seen in TEQ memory manager horizon |
|
|
Internal leeway for memory threshold |
|
|
Average drift of opt_time for all event queue partitions. A drift is defined as a difference between opt_time as set on an event queue partition and the actual time at which an event queue partition is first dequeueed after prefetch/uneviction. |
|
|
Number of times drift value has gone over threshold time. A typical threshold time can be horizon_time/2. |
|
|
Maximum drift until now |
|
|
Minimum drift until now |
|
|
An opt_time error occurs when a cached event queue partition is unevicted by a foreground process (instead of being prefetched by the AQ background). Thus, opt_time error is the difference between the actual opt_time set for an event queue partition and the absolute time at which foreground unevicts the same event queue partition. This column represents the average time of this error. |
|
|
Maximum opt_time error |
|
|
Minimum opt_time error |
|
|
Number of event stream partitions reloaded from disk into message cache by foreground processes |
|
|
Number of event stream partitions reloaded from disk into message cache in advance by background processes |
|
|
Average time to reload an event stream partition from disk into message cache (in milliseconds) |
|
|
The ID of the container to which the data pertains. Possible values include:
|
Note:
This view is available starting with Oracle Database 21c.
See Also:
Oracle Database Advanced
Queuing User’s Guide for more information about Oracle Transactional Event Queues and Advanced Queuing