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

本站中文解释

Oracle视图DBA_ALERT_HISTORY显示已有的报警历史记录信息。该视图包含以下字段:

– ALERT_ID:一个唯一标识符,表示报警历史记录
– TIME_ISSUED:报警发出的时间
– ERROR_MESSAGE:报警消息
– ORIGINAL_LEVEL:报警等级:
LOW:低,
MEDIUM:中,
HIGH:高,
SERIOUS:严重
– MESSAGE_TEXT:报警文本
– ERROR_NUMBER:报警错误码
– ALERT_NAME:报警名称

使用方法:

第一步:使用下列语句,显示报警历史记录:
SELECT * FROM DBA_ALERT_HISTORY;

第二步:如果需要查看某个特定的报警,可以使用 WHERE 子句查询:
SELECT *
FROM DBA_ALERT_HISTORY
WHERE ALERT_ID = ‘alert_id_value’;

官方英文解释

DBA_ALERT_HISTORY describes a time-limited history of alerts which are no longer outstanding.

Column Datatype NULL Description

SEQUENCE_ID

NUMBER

NOT NULL

Alert sequence number

REASON_ID

NUMBER

ID of the alert reason

OWNER

VARCHAR2(128)

Owner of the object on which the alert was issued

OBJECT_NAME

VARCHAR2(513)

Name of the object

SUBOBJECT_NAME

VARCHAR2(128)

Name of the subobject (for example: partition)

OBJECT_TYPE

VARCHAR2(64)

Type of the object (for example: table, tablespace)

REASON

VARCHAR2(4000)

Reason for the alert

TIME_SUGGESTED

TIMESTAMP(6) WITH TIME ZONE

Time when the alert was last updated

CREATION_TIME

TIMESTAMP(6) WITH TIME ZONE

Time when the alert was first created

SUGGESTED_ACTION

VARCHAR2(4000)

Advice of the recommended action

ADVISOR_NAME

VARCHAR2(128)

Name of the advisor to be invoked for more information

METRIC_VALUE

NUMBER

Value of the related metrics

MESSAGE_TYPE

VARCHAR2(12)

Message type:

  • Notification

  • Warning

MESSAGE_GROUP

VARCHAR2(64)

Name of the message group to which the alert belongs

MESSAGE_LEVEL

NUMBER

Severity message level (1 to 32)

HOSTING_CLIENT_ID

VARCHAR2(64)

ID of the client or security group to which the alert relates

MODULE_ID

VARCHAR2(64)

ID of the module that originated the alert

PROCESS_ID

VARCHAR2(128)

Process ID

HOST_ID

VARCHAR2(256)

DNS host name of the originating host

HOST_NW_ADDR

VARCHAR2(256)

IP or other network address of the originating host

INSTANCE_NAME

VARCHAR2(16)

Originating instance name

INSTANCE_NUMBER

NUMBER

Originating instance number

USER_ID

VARCHAR2(128)

User ID

EXECUTION_CONTEXT_ID

VARCHAR2(128)

Execution Context ID

ERROR_INSTANCE_ID

VARCHAR2(142)

ID of an error instance plus a sequence number

RESOLUTION

VARCHAR2(7)

Resolution:

  • Cleared

  • N/A

PDB_NAME

VARCHAR2(128)

PDB name

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 multitenant container database (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 视图 DBA_ALERT_HISTORY 官方解释,作用,如何使用详细说明