wait 사례 3

다양한 wait가 발생하는 사례 연구 3

# 상황 : latch: library cache, latch: shard pool wait 상황 - bind 변수를 사용하지 않는 경우 - (1) SQL> conn / as sysdba startup force drop table mystat purge; create table mystat as select 0 as no, event, total_waits, time_waited from v$system_event where 1 = 2; insert into mystat select 1 as no, event, total_waits, time_waited from v$system_event; set lines 200 set pages 200 clear break col event format a30 s..

오라클/OWI 2010.08.05

다양한 wait가 발생하는 사례 연구 2

상황 : 넓은 범위에 대한 질의를 인덱스를 이용해서 처리하도록 유도하는 상황이다. (1) 서버 시작 SQL> conn / as sysdba SQL> startup force (2) wait의 변화를 확인하기 위해 테이블 생성 및 스냅샷 생성 SQL> drop table mystat purge; SQL> create table mystat as select 0 as no, event, total_waits, time_waited from v$system_event where 1 = 2; SQL> insert into mystat select 1 as no, event, total_waits, time_waited from v$system_event; SQL> set lines 200 SQL> set pag..

오라클/OWI 2010.08.05

다양한 wait가 발생하는 사례 연구 1

buffer busy waits, latch: cache buffers chains, enq: HW - contention, enq: TX - contention 등 다양한 Wait를 초래하는 작업을 생성하고, 해결 방법을 모색해 본다. 상황 : freelist로 관리되는 segment에 동시 insert를 수행하는 상황이다. (1) Startup 직후의 wait 상황 확인 SQL> conn / as sysdba SQL> startup force SQL> conn system/oracle SQL> ed system_event.sql set pages 60 set lines 120 col wait_class format a20 col event format a60 select * from ( select ..

오라클/OWI 2010.08.05