Oracle 视图 V$AQ_MESSAGE_CACHE 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$AQ_MESSAGE_CACHE显示应用程序正在缓存AQ消息的状态。这个视图有助于检测AQ消费者是否正确及及时地缓存消息。
要使用这个视图,可以使用SELECT语句来检索缓存的消息信息:
SELECT * FROM v$aq_message_cache;
要更详细地了解缓存中的消息,可以使用WHERE子句:
SELECT * FROM v$aq_message_cache
WHERE consumer_name = ‘name_of_consumer’;
where name_of_consumer是要查询的消费者名称。
官方英文解释
V$AQ_MESSAGE_CACHE
provides performance statistics of the message cache for sharded queues at the subshard level in the instance.
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 |
---|---|---|
|
|
Queue ID |
|
|
Shard ID |
|
|
Priority of the subshard for dequeue, range |
|
|
Subshard ID in the shard |
|
|
Partition id for the particular subshard |
|
|
Maximum number of messages of subshard |
|
|
Number of messages enqueued for the subshard |
|
|
Number of messages made expired |
|
|
The size of the memory chunk for storing messages |
|
|
Number of chunks for the subshard |
|
|
Number of free chunks for the subshard |
|
|
Total estimated size of memory in use (in bytes) for the subshard |
|
|
Subshard state. Possible values:
|
|
|
The ID of the container to which the data pertains. Possible values include:
|
See Also:
Oracle Database Advanced
Queuing User’s Guide for more information about Oracle Database Advanced Queueing