Oracle 视图 V$MVREFRESH 官方解释,作用,如何使用详细说明
本站中文解释
(基于MView的刷新状态及详情)
Oracle视图V$MVREFRESH是一种基于MView的数据库刷新状态和详情的视图。它包括在MView刷新期间发生的基本操作详细信息,比如:将MView刷新到基表的数据采集时间,生成的MView的开始、结束的执行时间和MView的更新间隔。
使用此视图可以查看正在刷新的MView日志,这有助于确定MView刷新过程中可能存在的性能问题。此外,它也可以帮助系统管理员监控和优化MView刷新性能。
例如,要查询某个特定的MView,可以获取刷新情况的详细信息,可以使用以下命令:
SELECT * FROM V$MVREFRESH WHERE MV_NAME=’MVIEW_NAME’ ORDER BY LAST_REFRESH_TIME DESC;
官方英文解释
V$MVREFRESH
displays information about the materialized views currently being refreshed.
Column | Datatype | Description |
---|---|---|
|
|
Session identifier |
|
|
Session serial number, which is used to uniquely identify a session’s objects. Guarantees that session-level commands are applied to the correct session objects if the session ends with, and another session begins with, the same session ID. |
|
|
Owner of the materialized view currently being refreshed. The materialized view resides in this user’s schema. |
|
|
Name of the materialized view currently being refreshed |
|
|
The ID of the container to which the data pertains. Possible values include:
|