Oracle v$session & v$active_session_history & dba_hist_active_sess_history

v$session:实时 


v$active_session_history :
每1秒将v$session中记录保存到 v$active_session_history 视图中,只会加载非idle会话。
存在内存,重启就会消失。用做ASH报表。
 _ash_sampling_interval


dba_hist_active_sess_history:
每隔10秒钟转储来自v$active_session_history的活动session信息。 
 _ash_disk_filter_ratio 

V$SESSION

V$SESSION displays session information for each current session.

V$ACTIVE_SESSION_HISTORY

V$ACTIVE_SESSION_HISTORY displays sampled session activity in the database.

It contains snapshots of active database sessions taken once a second. A database session is considered active if it was on the CPU or was waiting for an event that didn’t belong to the Idle wait class. Refer to the V$EVENT_NAME view for more information on wait classes.

This view contains one row for each active session per sample and returns the latest session sample rows first. A majority of the columns describing the session in the active session history are present in the V$SESSION view.

DBA_HIST_ACTIVE_SESS_HISTORY

DBA_HIST_ACTIVE_SESS_HISTORY displays the history of the contents of the in-memory active session history of recent system activity.

DBA_HIST_ACTIVE_SESS_HISTORY contains snapshots of V A C T I V E S E S S I O N H I S T O R Y . S e e " V ACTIVE_SESSION_HISTORY. See "V ACTIVESESSIONHISTORY.See"VACTIVE_SESSION_HISTORY" for further interpretation details for many of these columns (except SNAP_ID, DBID, and INSTANCE_NUMBER).

ASH

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值