Oracle 视图 V$AQ_MESSAGE_CACHE_ADVICE 官方解释,作用,如何使用详细说明
本站中文解释
?
V$AQ_MESSAGE_CACHE_ADVICE是Oracle的一个视图,它提供了消息缓存的指导建议,可以查看每个消费者的消息缓存是否足够,以及如何提高性能。这个视图通常用于在应用程序中调整消息缓存大小,以降低消息丢失几率或消息重复几率,全面提高Oracle AQ的性能。
使用V$AQ_MESSAGE_CACHE_ADVICE 视图可以执行下面的操作来优化性能:
1.检查消费者消息缓存大小:通过检查V$AQ_MESSAGE_CACHE_ADVICE视图中的各个消费者的消息缓存大小,可以检查是否满足需求:
2. 根据需要调整消息缓存大小:如果当前的消息缓存没有满足需求,可以根据V$AQ_MESSAGE_CACHE_ADVICE中的建议进行调整,来提高性能。
3.确定最合适的消息缓存大小:当消息缓存大小已经适当调整后,可以根据V$AQ_MESSAGE_CACHE_ADVICE查看消息缓存效果从而确定最合适的消息缓存大小。
官方英文解释
V$AQ_MESSAGE_CACHE_ADVICE
shows simulated metrics for a range of potential message cache sizes. This view assists in cache sizing by providing information in the form of metrics as described below.
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 |
---|---|---|
|
|
Cache size for simulation (in megabytes) |
|
|
Size factor with respect to the current cache size |
|
|
Possible values:
|
|
|
Estimated number of cached subshards for this size |
|
|
Estimated number of uncached subshards for this size |
|
|
Estimated number of subshards evicted for this size |
|
|
Estimated number of subshards getting evicted per minute |
|
|
Estimated number of subshards unevicted by foreground processes |
|
|
Estimated number of subshards getting unevicted by foreground processes |
|
|
Estimated number of subshards unevicted by background processes |
|
|
Estimated number of subshards getting unevicted by background processes |
|
|
Estimated number of background processes required for this size |
|
|
Simulated number of messages being enqueued per second |
|
|
Simulated number of messages being dequeued per second |
|
|
Simulated average number of messages per cached subshard |
|
|
Simulated average memory per cached subshard (in megabytes) |
|
|
Simulated average time to evict a cached subshard (in milliseconds) |
|
|
Simulated average time to unevict a cached subshard (in milliseconds) |
|
|
Reserved for internal use |
|
|
Amount of time that was simulated for (in minutes) |
|
|
The ID of the container to which the data pertains. Possible values include:
|