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

本站中文解释

Oracle视图DBA_ADDM_INSTANCES可帮助用户查看启动自动处理分析(ADDM)的实例信息,其中包括report_id,实例ID,任务状态,计划开始时间和完成时间。

使用方式:

1.登录Oracle数据库,使用DBA账户或具有访问DBA_ADDM_INSTANCES视图权限的用户账户;

2.按照下列 select 语句查询单个实例的 ADDM 信息:

SELECT report_id ,instance_id, status ,plan_start_time, report_end_time FROM DBA_ADDM_INSTANCES WHERE instance_id = ‘instance_id’;

3.使用下面的 select 语句查询数据库中所有实例的 ADDM 信息:

SELECT report_id ,instance_id, status ,plan_start_time, report_end_time FROM DBA_ADDM_INSTANCES;

官方英文解释

DBA_ADDM_INSTANCES displays instance-level information for ADDM tasks that finished executing.

For each instance that was supposed to be analyzed (whether it was or not) there is one row describing information about it.

Related View

USER_ADDM_INSTANCES displays instance-level information for ADDM tasks that finished executing in all instances owned by the current user.

Column Datatype NULL Description

TASK_ID

NUMBER

NOT NULL

The ID of the main ADDM task

INSTANCE_NUMBER

NUMBER

NOT NULL

The number of the instance

INSTANCE_NAME

VARCHAR2(16)

The name of the instance

HOST_NAME

VARCHAR2(64)

The name of the system on which the instance was running

STATUS

VARCHAR2(10)

How information from this instance was used by the ADDM task.

A value of ANALYZED means that the instance participated fully in the analysis. For the following remaining values, the instance was not used during task execution, for the stated reason:

BOUNCED – the instance was shut down or started during the analysis period

NO_SNAPS – there were either begin or end snapshots missing for the instance

NO_STATS – there were key statistics missing for the instance

NOT_FOUND – no mention of this instance could be found in AWR during the analysis period

DATABASE_TIME

NUMBER

The database time, in microseconds, accumulated by this instance during the analysis period

ACTIVE_SESSIONS

NUMBER

The average number of active sessions for the instance during the analysis period

PERC_ACTIVE_SESS

NUMBER

The percentage of active sessions for this instance, out of the total active sessions for the task

METER_LEVEL

VARCHAR2(6)

Reserved for future use

LOCAL_TASK_ID

NUMBER

The ID of a local ADDM task that contained an analysis of the instance for the same analysis period as that of the main task. If the main task is a local ADDM, then this value is the same as the TASK_ID value.

See Also:

“USER_ADDM_INSTANCES”


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