Oracle 视图 ALL_MVIEW_REFRESH_TIMES 官方解释,作用,如何使用详细说明
本站中文解释
ALL_MVIEW_REFRESH_TIMES视图是Oracle数据库中的系统视图,它包含有关主要物理和逻辑索引视图最后一次刷新时间及其它信息。
用途:
该视图可以帮助我们检查和监视所有主要物理和逻辑索引视图的最新刷新时间。我们可以在实际应用或其它脚本中使用ALL_MVIEW_REFRESH_TIMES视图获取物理和逻辑索引视图的刷新时间, 并通过比较来判断数据是否有更新。通过使用以下查询,我们可以查询”‘EMP_VIEW'”视图的最后更新时间:
SELECT LAST_REFRESH
FROM ALL_MVIEW_REFRESH_TIMES
WHERE OWNER=’SCOTT’
AND MVIEW_NAME=’EMP_VIEW’;
官方英文解释
ALL_MVIEW_REFRESH_TIMES
describes refresh times of the materialized views accessible to the current user.
Related Views
-
DBA_MVIEW_REFRESH_TIMES
describes refresh times of all materialized views in the database. -
USER_MVIEW_REFRESH_TIMES
describes refresh times of the materialized views owned by the current user.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the materialized view |
|
|
|
Name of the materialized view |
|
|
Owner of the master table |
|
|
|
Name of the master table |
|
|
|
|
See Also:
-
“DBA_MVIEW_REFRESH_TIMES”
-
“USER_MVIEW_REFRESH_TIMES”