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

本站中文解释

Oracle 视图V$SUBSCR_REGISTRATION_STATS统计表达式订阅进程的当前注册状态,用于分析表达式订阅过程的状态及对比当前的各个状态的不同时段的注册情况。V$SUBSCR_REGISTRATION_STATS包含如下字段:

•AQ_NAME:采用表达式订阅的队列名
•SUBSCRIBER_NAME:订阅者名称
•CREATION_TIME:订阅过程注册时刻,以本地时间显示
•LAST_FAILURE_TIME:最后一次订阅失败的时刻,以本地时间显示
•SUCCESS_COUNT:成功订阅的次数
•FAILURE_COUNT:失败的订阅次数
•ITERATION_COUNT:表达式订阅迭代次数
•ITERATION_BEGIN_TIME:上一次迭代开始时间,以本地时间显示
•ITERATION_END_TIME:上一次迭代结束时间,以本地时间显示
•STATUS:当前订阅状态,有可能是SUCCEEDED、FAILED、RETRYING、RUNNING或其他状态

使用方法:

1.运行sql语句查看订阅者当前的状态:
SELECT status,subscriber_name
FROM V$SUBSCR_REGISTRATION_STATS;

2.查看特定订阅者最近5次订阅成功次数:
SELECT SUBSCRIBER_NAME,SUCCESS_COUNT
FROM V$SUBSCR_REGISTRATION_STATS
WHERE SUBSCRIBER_NAME = ‘subs_name’
ORDER BY SUCCESS_COUNT DESC
FETCH FIRST 5 ROWS ONLY;

3.检查应用程序在10分钟内是否注册成功:
SELECT SUBSCRIBER_NAME,SUCCESS_COUNT
FROM V$SUBSCR_REGISTRATION_STATS
WHERE CREATION_TIME > SYSDATE – 10/ 1440;

官方英文解释

V$SUBSCR_REGISTRATION_STATS displays information for diagnosability of notifications.

Column Datatype Description

REG_ID

NUMBER

Registration identifier

NUM_NTFNS

NUMBER

Number of notifications

NUM_GROUPING_NTFNS

NUMBER

Number of grouping notifications

NUM_NTFNS_CURRENT_GROUP

NUMBER

Number of events received in the current group

LAST_NTFN_START_TIME

TIMESTAMP(3) WITH TIME ZONE

Time when the last notification was started

LAST_NTFN_SENT_TIME

TIMESTAMP(3) WITH TIME ZONE

Time when the last notification was sent

TOTAL_EMON_LATENCY

NUMBER

Total EMON latency (time taken by the EMON slave to process notifications)

EMON#

NUMBER

Active EMON slave serving the registration

ALL_EMON_SERVERS

RAW(2000)

EMON slaves that served the registration

TOTAL_PAYLOAD_BYTES_SENT

NUMBER

Total payload bytes sent

SHARD_ID

NUMBER

Shard number for current registration used for Key Based Messaging

NUM_RETRIES

NUMBER

Number of retries in sending notifications

TOTAL_PLSQL_EXEC_TIME

NUMBER

Total PL/SQL callback execution time (relevant only for PL/SQL notifications)

LAST_ERR

VARCHAR2(90)

Last error message

LAST_ERR_TIME

TIMESTAMP(3) WITH TIME ZONE

Time of the last error

LAST_UPDATE_TIME

TIMESTAMP(3) WITH TIME ZONE

Time of the last update

NUM_PENDING_NTFNS

NUMBER

Number of notifications pending to be sent

TOTAL_PENDING_NTFN_BYTES

NUMBER

Total number of bytes for notifications pending to be sent

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