SQL> select * from v$sgastat where name = 'ASH buffers';
POOL NAME BYTES
------------ -------------------------- -----------
shared pool ASH buffers 16252928
select
sample_id, sample_time -----------------------------------------------------------①
, session_id, session_serial#, user_id, xid -----------------------------------------②
, sql_id, sql_child_number, sql_plan_hash_value ----------------------------------③
, session_state ---------------------------------------------------------------------④
, qc_instance_id, gc_session_id ---------------------------------------------------⑤
, blocking_session, blocking_session_serial#, blocking_session_status ----------⑥
, event, event#, seq#, wait_class, wait_time, time_waited -----------------------⑦
, p1text, p1, p2text, p2, p3text, p3 -----------------------------------------------⑧
, current_obj#, current_file#, current_block# -------------------------------------⑨
, program, module, action, client_id ---------------------------------------------⑩
from V$ACTIVE_SESSION_HISTORY
column current_obj# format 99999 heading 'CUR_OBJ#'
column current_file# format 999 heading 'CUR_FIL#'
column current_block# format 999 heading 'CUR_BLK#'
select to_char(sample_time, 'hh24:mi:ss') sample_tm, session_state
, event, wait_class, current_obj#, current_file#, current_block#
from v$active_session_history
where session_id = 143
and session_serial# = 9
order by sample_time;
SAMPLE_T | SESSION | EVENT | WAIT_CLASS | CUR_OBJ# | EUR_FIL# | CUR_CLK# |
15:00:44 | WATING | Enq: TX - row lock contention | Application | 55765 | 4 | 476 |
15:00:45 | WATING | Enq: TX - row lock contention | Application | 55765 | 4 | 476 |
15:00:46 | WATING | Enq: TX - row lock contention | Application | 55765 | 4 | 476 |
15:00:47 | WATING | Enq: TX - row lock contention | Application | 55765 | 4 | 476 |
15:01:36 | WATING | Enq: TX - allocate ITL entry | Conficuration | -1 | 4 | 476 |
15:01:37 | WATING | Enq: TX - allocate ITL entry | Conficuration | -1 | 4 | 476 |
15:01:38 | WATING | Enq: TX - allocate ITL entry | Conficuration | -1 | 4 | 476 |
15:01:39 | WATING | Enq: TX - allocate ITL entry | Conficuration | -1 | 4 | 476 |
- 강좌 URL : http://www.gurubee.net/lecture/3091
- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^
- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.