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

SIZE_FOR_ESTIMATE

NUMBER

Cache size for simulation (in megabytes)

SIZE_FACTOR

NUMBER

Size factor with respect to the current cache size

ESTD_SIZE_TYPE

VARCHAR2(9)

Possible values:

  • MINIMUM: This cache size is required to have all dequeues in-memory (no uncached).

  • PREFERRED: This is the smallest message cache size required to eliminate 80% of unevictions that occur with a message cache size of MINIMUM for subscribers who keep up, that is, subscribers whose dequeue rate matches the enqueue rate.

  • MAXIMUM: This cache size is required to have zero evictions.

  • NULL: This is the value in all other cases.

ESTD_CACHED_SUBSHARDS

NUMBER

Estimated number of cached subshards for this size

ESTD_UNCACHED_SUBSHARDS

NUMBER

Estimated number of uncached subshards for this size

ESTD_EVICTIONS

NUMBER

Estimated number of subshards evicted for this size

ESTD_EVICTION_RATE

NUMBER

Estimated number of subshards getting evicted per minute

ESTD_FG_UNEVICTIONS

NUMBER

Estimated number of subshards unevicted by foreground processes

ESTD_FG_UNEVICTION_RATE

NUMBER

Estimated number of subshards getting unevicted by foreground processes

ESTD_BG_UNEVICTIONS

NUMBER

Estimated number of subshards unevicted by background processes

ESTD_BG_UNEVICTION_RATE

NUMBER

Estimated number of subshards getting unevicted by background processes

ESTD_BG_PROCESSES

NUMBER

Estimated number of background processes required for this size

TOTAL_ENQUEUE_RATE

NUMBER

Simulated number of messages being enqueued per second

TOTAL_DEQUEUE_RATE

NUMBER

Simulated number of messages being dequeued per second

AVG_SUBSHARD_SIZE

NUMBER

Simulated average number of messages per cached subshard

AVG_SUBSHARD_MEMORY

NUMBER

Simulated average memory per cached subshard (in megabytes)

AVG_EVICTION_TIME

NUMBER

Simulated average time to evict a cached subshard (in milliseconds)

AVG_UNEVICTION_TIME

NUMBER

Simulated average time to unevict a cached subshard (in milliseconds)

FLAGS

NUMBER

Reserved for internal use

SIMULATION_TIME

NUMBER

Amount of time that was simulated for (in minutes)

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


数据运维技术 » Oracle 视图 V$AQ_MESSAGE_CACHE_ADVICE 官方解释,作用,如何使用详细说明