Oracle 视图 V$PERSISTENT_QUEUES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图 V$PERSISTENT_QUEUES 是一个虚拟视图,提供了当前实例中持久队列的详细信息。通过检索该视图,可以获取系统上可用的持久队列,例如队列范围、密钥,可以以及有关任何消息传递到消息队列的细节。
使用Oracle视图 V$PERSISTENT_QUEUES 时,可以使用下面这些参数:
NAME:该列指定了持久队列的名称。
PROVIDER:该列指定当前使用的持久性消息队列的提供程序的名称。
CLASSNAME:该列指定了客户机连接到提供程序的资源选择器的类名称。
VERSION:该列指定了要使用提供程序的当前JMS版本。
CUR_NUM_MSGS:该列显示了当前队列中消息的数量。
MAX_NUM_MSGS:该列显示了队列允许的最大消息数量。
MAX_MSG_SIZE:该列显示了队列中允许消息的最大大小。
MAX_BYTES_IN_MSG:该列显示了每个消息允许的最大字节数。
官方英文解释
V$PERSISTENT_QUEUES
displays information about all active persistent queues in the database since the queues’ first activity time. There is one row per queue. The rows are deleted when the database (or instance in an Oracle RAC environment) restarts.
Column | Datatype | Description |
---|---|---|
|
|
Identifier for the queue |
|
|
Queue table identifier |
|
|
Owner of the queue |
|
|
Name of the queue |
|
|
First queue activity time since database startup |
|
|
Number of messages enqueued |
|
|
Number of messages dequeued Note: This column will not be incremented until all the subscribers of the message have dequeued the message and its retention time has elapsed. |
|
|
Number of messages that have been browsed |
|
|
Total time (in hundredths of a second) spent doing enqueue |
|
|
Total time (in hundredths of a second) spent doing dequeue |
|
|
Total CPU time for enqueue (in hundredths of a second) |
|
|
Total CPU time for dequeue (in hundredths of a second) |
|
|
Average age of messages in the queue |
|
|
Last dequeued message latency (in seconds) |
|
|
Total time (in hundredths of a second) spent doing transformation |
|
|
Total time (in hundredths of a second) spent doing rule evaluation |
|
|
Number of messages enqueued with expiry |
|
|
Number of messages enqueued with delay |
|
|
Number of messages expired by time manager |
|
|
Number of messages made ready by time manager |
|
|
Last message enqueue time |
|
|
Last message dequeue time |
|
|
Last time message was expired by time manager |
|
|
Last time message was made ready by time manager |
|
|
Number of enqueue transactions |
|
|
Number of dequeue transactions |
|
|
Number of executions of the dequeue cursor |
|
|
Message ID of the oldest message in the queue |
|
|
Enqueue time of the oldest message in the queue |
|
|
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 needed from this instance to another for this queue. |
|
|
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 needed from this instance to another for this queue. |
|
|
The number of times dequeue affinities have come back from other instances to this instance. ( |
|
|
The number of times a shard is being forwarded to another instance due to cross instance dequeues for this queue |
|
|
The number of times subscribers used existing shard forwarding to have cross instance dequeues for this queue |
|
|
The number of affinity switches for this queue where this instance is the dequeue instance for a shard-subscriber pair where the shard is being enqueued at another instance |
|
|
The number of affinity switches for this queue where shadow affinity is switched back to source instance of the shard. ( |
|
|
The number of times a shard is being forwarded from another instance to this instance due to cross instance dequeues for this queue |
|
|
The number of times a forwarded shard to this instance was stopped due to removal of cross instance dequeues for this queue |
|
|
The number of times an event stream is being forwarded from another instance to this instance due to cross instance dequeues for this queue |
|
|
The number of times a forwarded event stream to this instance was stopped due to removal of cross instance dequeues for this queue |
|
|
The ID of the container to which the data pertains. Possible values include:
|
Footnote 1 This column is available starting with Oracle Database 21c.
Note:
For sharded queues, only the following columns in this view contain accurate information: FIRST_ACTIVITY_TIME
, BROWSED_MSGS
, LAST_ENQUEUE_TIME
, LAST_DEQUEUE_TIME
, ENQUEUE_TRANSACTIONS
, and DEQUEUE_TRANSACTIONS
. The rest of the columns in this view should be ignored when querying information about sharded queues.