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

本站中文解释

Oracle视图ALL_SCHEDULER_NOTIFICATIONS用于存储和检索调度器通知信息,它还用于提供Oracle调度器活动的信息。此视图提供下表中的列:

OWNER:表示通知拥有者的用户名
NOTIFICATION_NAME:表示通知的名称
ADDRESS:表示要发送的通知的Internet地址的类型
PROTOCOL:表示通知传输协议名称(如HTTP,HTTPS或FTP)
ADDRESS_VALUE:表示发送通知的Internet地址
JOB_NAME:表示发送通知任务的名称

要使用此视图,您需要在SQL * Plus中执行以下操作:

SELECT *
FROM ALL_SCHEDULER_NOTIFICATIONS;

该语句将检索出系统中所有调度器通知信息。您可以通过添加WHERE子句来仅检索特定的信息,例如:

SELECT *
FROM ALL_SCHEDULER_NOTIFICATIONS
WHERE JOB_NAME = ‘JOB1’;

该语句将检索出具有名称“JOB1”的调度器任务发送的通知的所有信息。

官方英文解释

ALL_SCHEDULER_NOTIFICATIONS displays information about the E-mail notifications for the jobs accessible to the current user.

Related Views

  • DBA_SCHEDULER_NOTIFICATIONS displays information about the E-mail notifications for all jobs in the database.

  • USER_SCHEDULER_NOTIFICATIONS displays information about the E-mail notifications for the jobs owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

NOTIFICATION_OWNER

VARCHAR2(128)

NOT NULL

Owner of this notification

OWNER

VARCHAR2(128)

NOT NULL

Owner of the job this notification is for

JOB_NAME

VARCHAR2(128)

NOT NULL

Name of the job this notification is for

JOB_SUBNAME

VARCHAR2(128)

Subname of the job this notification is for

RECIPIENT

VARCHAR2(4000)

NOT NULL

E-mail address to send this E-mail notification to

SENDER

VARCHAR2(4000)

E-mail address to send this E-mail notification from

SUBJECT

VARCHAR2(4000)

Subject of the notification E-mail

BODY

VARCHAR2(4000)

Body of the notification E-mail

FILTER_CONDITION

VARCHAR2(4000)

Filter specifying which job events to send notifications for

EVENT

VARCHAR2(19)

Job event to send notifications for:

  • JOB_STARTED

  • JOB_SUCCEEDED

  • JOB_FAILED

  • JOB_BROKEN

  • JOB_COMPLETED

  • JOB_STOPPED

  • JOB_SCH_LIM_REACHED

  • JOB_DISABLED

  • JOB_CHAIN_STALLED

  • JOB_OVER_MAX_DUR

EVENT_FLAG

NUMBER

NOT NULL

Event number of the job event to send notifications for

See Also:

  • “DBA_SCHEDULER_NOTIFICATIONS”

  • “USER_SCHEDULER_NOTIFICATIONS”


数据运维技术 » Oracle 视图 ALL_SCHEDULER_NOTIFICATIONS 官方解释,作用,如何使用详细说明