SQL> alter session set events '10046 trace name context forever, level 12';
SQL> exit
[TEST10]clt585av13:/lim/admin/TEST10/udump> tkprof test10_ora_18030.trc
output = lc_test
TKPROF: Release 10.2.0.4.0 - Production on Sat May 12 02:28:52 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
[TEST10]clt585av13:/lim/admin/TEST10/udump> vi lc_test
********************************************************************************
SQL> select * from TAX_TAB where rownum <3;
select *
from
TAX_TAB where rownum <3
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 1 3 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 1 3 0 0
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 124
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net more data to client 1 0.00 0.00
db file sequential read 1 0.00 0.00
********************************************************************************
SQL 최적화 하기 쉬운 형태로 변환
실행계획 후보군 생성
수행 각 단계의 선택도, 카디널리티, 비용 고려하여 수행 시 드는 총 비용 계산
오브젝트 통계 정보, 시스템 성능 통계, 메모리, CPU, Single block read time, Multiblock read time 등등 이용