Oracle 视图 DBA_ACTIVITY_MVIEW 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_ACTIVITY_MVIEW提供了Database Performance Analyzer (DPA) 对全局数据库性能的诊断信息的快照。它显示数据库处理总量、活动会话、生存期和性能指标。
DPA_ACTIVITY_MVIEW视图提供了一组和其他视图用于诊断特定的性能数据。这包括下面的列:DPA_ACTIVITY_MVIEW.ID,DPA_ACTIVITY_MVIEW.SESSION_ID,DPA_ACTIVITY_MVIEW.SESSION_DB_ID,DPA_ACTIVITY_MVIEW.SESSION_USER,DPA_ACTIVITY_MVIEW.SESSION_SERVICE_NAME,DPA_ACTIVITY_MVIEW.LAST_ACTIVE_TIME,DPA_ACTIVITY_MVIEW.TOTAL_WORK,DPA_ACTIVITY_MVIEW.SEQUENCE_NUMBER,DPA_ACTIVITY_MVIEW.LOAD_TIME例如,要检索最活跃的会话,您可以使用以下查询:
SELECT *
FROM DPA_ACTIVITY_MVIEW
ORDER BY LAST_ACTIVE_TIME DESC;
此外,DBA_ACTIVITY_MVIEW视图还可以用来根据请求的特定指标,如服务器活动会话数,使用统计函数等来跟踪特定的性能指标及时间。
官方英文解释
DBA_ACTIVITY_MVIEW
describes materialized view activity snapshots that were recently taken by the Object Activity Tracking System (OATS).
Each row in this view represents one recently completed activity snapshot and describes the materialized view activity that occurred during the snapshot interval.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Activity snapshot identifier |
|
|
|
Name of the container to which the data pertains |
|
|
|
Identifier for the instance in which the activity snapshot was taken |
|
|
|
Begin time for the activity snapshot interval |
|
|
|
End time for the activity snapshot interval |
|
|
|
Name of the materialized view for which the activity snapshot was taken |
|
|
|
Owner of materialized view for which the activity snapshot was 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 |
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:
“V$ACTIVITY_MVIEW” to view in-progress materialized view activity snapshots