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

本站中文解释

V$QUEUE是Oracle围绕队列机制所建立的查看队列运行情况的视图,主要提供了一些与队列、消息和消费进程相关的内 He 和性能信息,可用来跟踪消息级别的应用程序状态。

使用V$QUEUE视图需要执行以下步骤:

1.连接到数据库。

2.使用以下SQL语句访问视图:
SELECT * FROM V\$QUEUE

3.按需筛选所需的消息或队列:
SELECT * FROM V\$QUEUE WHERE name=”

4.查看消费者进程的活动情况:
SELECT * FROM V\$QUEUE WHERE state=’ACTIVE’

5.查看消息的状态:
SELECT * FROM V\$QUEUE WHERE status=’ENQUEUED’

6.查看消费者进程处理消息的数量:
SELECT COUNT(*) FROM V\$QUEUE WHERE status=’ENQUEUED’

官方英文解释

V$QUEUE contains information on the shared server message queues.

Column Datatype Description

PADDR

RAW(4 | 8)

Address of the process that owns the queue

TYPE

VARCHAR2(10)

Type of queue:

  • COMMON – Processed by servers

  • DISPATCHER

QUEUED

NUMBER

Number of items in the queue

WAIT

NUMBER

Total time that all items in this queue have waited (in hundredths of a second). Divide by TOTALQ for average wait per item.

TOTALQ

NUMBER

Total number of items that have ever been in the queue

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