Oracle 视图 V$ACTIVITY_MVIEW 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$ACTIVITY_MVIEW提供了一些有关当前会话中表空间或竞争变更的活动信息。该视图报告所有未完成的索引,表和快照切换。可以通过查询该视图来检索信息,以便监视和估计未完成的DML操作和快照切换的时间长度和完成的可能性。
V$ACTIVITY_MVIEW的主要用途就是可以帮助用户监控表空间。可以查看未完成的操作和其它数据库活动。
要使用V$ACTIVITY_MVIEW,请通过使用SELECT命令来查询和跟踪一个或多个会话的活动状况,可以按如下方式来查询:
select * from v$activity_mview
where session_id=&session_id
官方英文解释
V$ACTIVITY_MVIEW
describes the materialized view activity snapshots that are currently being taken by the Object Activity Tracking System (OATS).
Each row in this view represents one in-progress activity snapshot and describes the materialized view activity that has occurred so far during the snapshot interval.
Column | Datatype | Description |
---|---|---|
|
|
Name of the materialized view for which the activity snapshot is being taken |
|
|
Owner of the materialized view for which the activity snapshot is being taken |
|
|
Indicates whether the activity was performed by the RDBMS ( |
|
|
Number of times the materialized view was compiled This number includes:
|
|
|
Number of query rewrites that used the text match rewrite method |
|
|
Number of query rewrites that used general rewrite methods |
|
|
Number of query rewrites that occurred when the view was partially stale This number includes:
|
|
|
Number of query rewrites that used stale data in the materialized view plus the delta information stored in the materialized view logs |
|
|
Number of partition change tracking (PCT) rewrites |
|
|
Number of query rewrites that occurred because the materialized view was eligible for query rewrite and the |
|
|
Reserved for future use |
|
|
Number of query executions that did not use query rewrite because the materialized view was eligible for query rewrite, but stale |
|
|
Number of This type of refresh is performed on materialized views that use the |
|
|
Number of This type of refresh is performed on materialized views that use the |
|
|
Number of This type of refresh is performed on materialized views that use the |
|
|
Number of scheduled refreshes |
|
|
Number of automatic refreshes |
|
|
Number of incremental refreshes |
|
|
Number of full refreshes |
|
|
Number of partition change tracking (PCT) refreshes |
|
|
The ID of the container to which the data pertains. Possible values include:
|
Note:
The counts in this view are approximate in order to keep system overhead low. Also, there are database activities, such as statistics collection, query compilation, and query optimization, that may cause the counts to be different than expected or to vary slightly across successive queries.
Note:
This view is available starting with Oracle Database 21c.
See Also:
“DBA_ACTIVITY_MVIEW” to view recently completed materialized view activity snapshots