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

本站中文解释

Oracle视图DBA_AUTO_MV_REFRESH_HISTORY用于显示特定自动聚合统计快照的历史刷新记录,其中包括下列信息:

– 主机名
– 自动统计键
– 自动统计集全局id
– 引用次数
– 创建日期
– 标志
– 最近刷新时间
– 上一次刷新时间
– 本次/上次刷新时间戳
– 引用表名
– 并行度
– 运行模式
– 已完成/已取消/已失败/错误
– 时间总计

使用此视图的最常见方式是用于查看指定的自动统计快照是否具有有效的历史刷新记录、何时发生最近的刷新、以及刷新在上一次和本次之间的持续时间。

例子:

查询有关指定自动统计快照35磁盘并行度的最近刷新信息:

SELECT host_name, last_refresh, last_refresh_time, refresh_timestamp_difference
FROM dba_auto_mv_refresh_history
WHERE auto_stat_key=35
AND refresh_parallelism=’Disk’;

官方英文解释

DBA_AUTO_MV_REFRESH_HISTORY describes automatic materialized view refreshes.

Column Datatype NULL Description

MVIEW_OWNER

VARCHAR2(128)

NOT NULL

Owner of the materialized view

MVIEW_NAME

VARCHAR2(128)

NOT NULL

Name of the materialized view

SWAT_MM_START_TIME

DATE

Date and time of the maintenance invocation

REFRESH_START_TIME

DATE

Date and time the refresh started

REFRESH_END_TIME

DATE

Date and time the refresh ended

ELAPSED_REFRESH_TIME

NUMBER

Duration of the refresh (in seconds)

STATUS

NUMBER

Status of the refresh. Possible values:

  • 0 – The refresh is in-progress

  • 1 – The refresh completed successfully

  • 2 – An error occurred during the refresh. Refer to the value of the ERROR column for more information.

  • 3 – The refresh was aborted

ERROR

NUMBER

If an error occurred during the refresh, this column displays the error number, which corresponds to error code ORA-number. Otherwise, the value of this column is 0.

Note:

This view is available starting with Oracle Database 21c.


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