Oracle 视图 V$AQ_MESSAGE_CACHE_STAT 官方解释,作用,如何使用详细说明
本站中文解释
ISTICS
V$AQ_MESSAGE_CACHE_STATISTICS视图返回队列消息缓存统计信息,其中包括若干特定队列的启动日期、消息缓存最大大小、消息缓存当前大小以及最新缓存时间等。
该视图用于监视用于储存可用于异步发布/订阅系统消息的Oracle Advanced Queueing消息缓存。通过运行结果,可以看出缓存的运行情况以及已发送消息的数量,以此可以迅速查看系统的整体情况,为调整高效的性能做出充分准备。
官方英文解释
V$AQ_MESSAGE_CACHE_STAT
displays statistics about memory management for sharded queues in the Streams pool within the System Global Area (SGA). Sharded queues use the Streams pool in units of subshards. Thus, columns of this view shows statistics at subshard level. This view shows statistics across all sharded queues.
Note:
AQ sharded queues are deprecated in Oracle Database 21c. Oracle recommends that you instead use Transactional Event Queues (TEQs) for higher throughput and better performance.
Column | Datatype | Description |
---|---|---|
|
|
Number of evicted subshards across all sharded queues |
|
|
Number of subshards pre-fetched by AQ background process |
|
|
Number of subshards un-evicted by foreground process (like dequeue process) |
|
|
Number of subshards stored as uncached |
|
|
Number of subshards which are actively tracking dequeue rates |
|
|
Number of subshards stored as cached |
|
|
Maximum subshard size seen till now, in terms of number of messages per subshard |
|
|
Minimum subshard size seen till now, in terms of number of messages per subshard |
|
|
Mean subshard size seen till now, in terms of number of messages per subshard |
|
|
Average number subshards evicted per second |
|
|
Average number of subshards pre-fetched or un-evicted per second |
|
|
Average time taken to evict one subshard (in milliseconds) |
|
|
Average time taken to un-evict one subshard (in milliseconds) |
|
|
Average ratio of number of foreground un-evictions versus background pre-fetch |
|
|
Average ratio of number of subshard pre-fetched by background without dequeue attempt versus total number of subshards prefetched |
|
|
An affinity switch is a change in dequeue instance for a shard-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 shard-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 subshards seen in sharded queue memory manager horizon |
|
|
Last average memory of cached subshards seen in sharded queue memory manager horizon |
|
|
Last average number of subshards seen in sharded queue memory manager horizon |
|
|
Internal leeway for memory threshold |
|
|
Average drift of opt_time for all subshards. A drift is defined as a difference between opt_time as set on a subshard and the actual time at which subshard 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 till now |
|
|
Minimum drift till now |
|
|
An opt_time error occurs when a cached subshard 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 a sharded queue subshard and the absolute time at which foreground unevicts the same subshard. This column represents average time of this error. |
|
|
Maximum opt_time error |
|
|
Minimum opt_time error |
|
|
Number of subshards reloaded from disk into message cache by foreground processes |
|
|
Number of subshards reloaded from disk into message cache in advance by background processes |
|
|
Average time to reload a subshard from disk into message cache (in milliseconds) |
|
|
The ID of the container to which the data pertains. Possible values include:
|