Oracle 视图 DBA_HIST_PERSISTENT_QUEUES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_PERSISTENT_QUEUES用于查询 Oracle 数据库中持久性队列的统计信息。它显示了可用于跟踪每个持久性队列的每日性能指标,如排队、拥塞、等待和错误统计信息。可以用来分析分析队列的空载性能,系统扩容必要性,队列内消息错误和连接性能等。
使用该视图的方法如下:
1)查询持久性队列的历史数据:
SELECT * FROM DBA_HIST_PERSISTENT_QUEUES
2)获取指定持久性队列的消费者数和统计信息:
SELECT consumer_count, enqueues, dequeues, errors
FROM DBA_HIST_PERSISTENT_QUEUES
WHERE queue_name= ‘MyQueue’
3)按日期统计持久性队列的统计信息:
SELECT sample_time, consumer_count, enqueues, dequeues, errors
FROM DBA_HIST_PERSISTENT_QUEUES
WHERE queue_name= ‘MyQueue’
AND sample_time BETWEEN date1 AND date2
官方英文解释
DBA_HIST_PERSISTENT_QUEUES
displays Oracle Database AQ persistent queues historical statistics information.
This view contains snapshots of V$PERSISTENT_QUEUES
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Owner of the queue |
|
|
|
Name of the queue |
|
|
|
Identifier for 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 |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
“V$PERSISTENT_QUEUES”