TxEventQ Administrative Views

Oracle Database provides administrative views for collecting metrics on TxEventQ topics and queues. In this section, you’ll learn about each view and its use by database administrators for queue performance monitoring.

TxEventQ Views

Find the list of TxEventQ administrative views and their column definitions in the Oracle Database TxEventQ documentation. Views may be joined and grouped across queries to compose custom metrics and insights about queues and subscribers.

V$EQ_CACHED_PARTITIONS

Provides information about cached event stream partitions. Queries may group on identifiers like QUEUE id or EVENT_STREAM_ID.

V$EQ_CROSS_INSTANCE_JOBS

The V$EQ_CROSS_INSTANCE_JOBS view provides information about TxEventQ cross-instance jobs. This view is crucial for monitoring and managing message forwarding across different instances in a database cluster. The view offers comprehensive data about each job, including:

  • Job ID
  • Source schema and queue name
  • Event stream details
  • Destination instance
  • Job state and performance metrics

V$EQ_DEQUEUE_SESSIONS

The V$EQ_DEQUEUE_SESSIONS view provides information about active dequeue sessions for Transactional Event Queues. The view displays real-time data about sessions that are currently dequeuing messages. Queries may group on fields like QUEUE_ID, SUBSCRIBER_ID, CLIENT_ID, and more.

V$EQ_INACTIVE_PARTITIONS

The V$EQ_INACTIVE_PARTITIONS view provides information about inactive TxEventQ event stream partitions. The view is useful for identifying inactive partitions by their QUEUE_NAME or EVENT_STREAM_ID.

V$EQ_MESSAGE_CACHE

The V$EQ_MESSAGE_CACHE view provides performance statistics for the message cache associated with queues at the event stream partition level within an instance. This view is particularly useful for monitoring and diagnosing the behavior of event stream partitions in terms of message handling and memory usage.

V$EQ_MESSAGE_CACHE_ADVICE

The V$EQ_MESSAGE_CACHE_ADVICE view provides simulation metrics to assist in sizing the message cache for queues. By analyzing various potential cache sizes, this view helps determine the optimal configuration to ensure efficient message handling and system performance.

V$EQ_MESSAGE_CACHE_STAT

The V$EQ_MESSAGE_CACHE_STAT view provides global statistics on memory management for queues in the Streams pool of the System Global Area (SGA). This view offers insights into the behavior and performance of event queue partitions across all TxEventQs, aiding in effective monitoring and optimization. The view shows statistics across all queues.

V$EQ_NONDUR_SUBSCRIBER

The V$EQ_NONDUR_SUBSCRIBER view provides details about non-durable subscriptions on queues. Non-durable subscribers receive messages only while actively connected; they do not retain message state after disconnection. The view is per-queue and non-durable subscriber.

V$EQ_NONDUR_SUBSCRIBER_LWM

The V$EQ_NONDUR_SUBSCRIBER_LWM view provides information about the low watermarks (LWMs) of non-durable subscribers in a Transactional Event Queue (TxEventQ). The LWM of a subscriber represents a position within an event stream below which none of the messages are of interest to the subscriber.

V$EQ_PARTITION_STATS

The V$EQ_PARTITION_STATS view provides usage statistics for queue partition caches, specifically focusing on the queue partition cache and the dequeue log partition cache. This view is instrumental in monitoring and optimizing the performance of these caches.

V$EQ_REMOTE_DEQUEUE_AFFINITY

The V$EQ_REMOTE_DEQUEUE_AFFINITY view provides information about subscribers who are dequeuing messages from queues on an instance different from the event stream’s owner instance. In such cases, cross-instance message forwarding is employed to deliver messages to these subscribers.

This view is useful for monitoring and managing cross-instance message forwarding in a Real Application Clusters (RAC) environment, ensuring that subscribers receive messages even when dequeuing from a different instance than the event stream’s owner.

V$EQ_SUBSCRIBER_LOAD

The V$EQ_SUBSCRIBER_LOAD view provides data on the load and latency of all subscribers to queue event streams across instances in an Oracle Real Application Clusters (RAC) environment. This view helps in monitoring subscriber performance and identifying potential bottlenecks.

V$EQ_SUBSCRIBER_STAT

The V$EQ_SUBSCRIBER_STAT view provides statistics about subscribers of queue event streams. Each row corresponds to a specific combination of queue, event stream, and subscriber.

This view is useful for monitoring the performance and status of subscribers, allowing administrators to identify potential bottlenecks and optimize message processing.

V$EQ_UNCACHED_PARTITIONS

The V$EQ_UNCACHED_PARTITIONS view provides information about uncached partitions of queue event streams. Each row represents a specific event stream partition that is not currently cached.