本站中文解释
Oracle 视图 USER_MVIEW_LOGS 是提取当前用户定义的快照日志信息的视图。它用来存储对应快照日志 (materialized view log) 中的信息;快照日志用来记录被作为快照来跟踪的表的变更信息,当快照被重新刷新时,可以根据它来提取变更信息。
使用方式:
1. 查询快照日志的基本信息,如用户名、表名、日志更新策略等:
SELECT OWNER, LOG_TABLE, TIMESTAMP_COLUMN, REFRESH_MODE, REFRESH_METHOD
FROM USER_MVIEW_LOGS;
2. 查询快照日志的变更信息,如变更的行数、时间等:
SELECT LOG_TABLE, COUNT(*) CHANGES_NUM, MIN(LAST_CHANGE_TIME) MIN_CHANGE_TIME
FROM USER_MVIEW_LOGS
WHERE CHANGED=’YES’
GROUP BY LOG_TABLE;
官方英文解释
USER_MVIEW_LOGS
describes all materialized view logs owned by the current user. Its columns are the same as those in ALL_MVIEW_LOGS
.
See Also:
“ALL_MVIEW_LOGS”