Oracle 视图 V$AQ_REMOTE_DEQUEUE_AFFINITY 官方解释,作用,如何使用详细说明

本站中文解释

V$AQ_REMOTE_DEQUEUE_AFFINITY是一种系统视图,可以用来显示远程 AQ 对话的 dequeue 运行情况,包括成功的和失败的。它可以用来帮助 DBA 跟踪远程 dequeue 调用的执行情况,用于排查和调试问题。

使用V$AQ_REMOTE_DEQUEUE_AFFINITY的方法:

连接使用 SYSDBA 权限连接数据库;
使用以下SQL查询V$AQ_REMOTE_DEQUEUE_AFFINITY:
SELECT * FROM V$AQ_REMOTE_DEQUEUE_AFFINITY;

V$AQ_REMOTE_DEQUEUE_AFFINITY中有几个重要的字段:

NUM_TRIES: 连接次数。
NUM_SUCCESSES:成功次数。
NUM_FAILURES: 失败次数。
LAST_FAILURE: 最近一次失败的详细信息;包括错误码和失败原因。
SERVICE_NAME: 使用的远程连接服务名。
DESTINATION_NAME: 连接的目标库名。

官方英文解释

V$AQ_REMOTE_DEQUEUE_AFFINITY lists the dequeue affinity instance of the subscribers not dequeuing locally from the shard’s owner instance. Cross instance message forwarding is used for these subscribers.

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

NUMBER

Queue ID

SHARD_ID

NUMBER

Shard ID which is being forwarded from SOURCE_INSTANCE to INST_ID for the subscriber

SOURCE_INSTANCE_ID

NUMBER

Owner instance ID from where the shard is being forwarded

SUBSCRIBER_ID

NUMBER

Subscriber ID

QUEUE_SCHEMA

VARCHAR2(128)

Queue schema name

QUEUE_NAME

VARCHAR2(128)

Queue name

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_REMOTE_DEQUEUE_AFFINITY 官方解释,作用,如何使用详细说明