如何使用SQL_TRACE和10046事件(十)

2015-07-16 12:08:18 · 作者: · 浏览: 17
*************************************************************


SQL ID: 39m4sx9k63ba2 Plan Hash: 2317816222


select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#,length,piece


from


?idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#


call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------


Parse 3 0.00 0.00 0 0 0 0


Execute 3 0.00 0.00 0 0 0 0


Fetch 4 0.00 0.00 1 11 0 2


------- ------ -------- ---------- ---------- ---------- ---------- ----------


total 10 0.00 0.01 1 11 0 2


Misses in library cache during parse: 1


Misses in library cache during execute: 1


Optimizer mode: CHOOSE


Parsing user id: SYS (recursive depth: 1)


Number of plan statistics captured: 3


Rows (1st) Rows (avg) Rows (max) Row Source Operation


---------- ---------- ---------- ---------------------------------------------------


? ? ? ? 2 1 2 TABLE ACCESS BY INDEX ROWID IDL_UB2$ (cr=3 pr=0 pw=0 time=2460 us cost=3 size=40 card=2)


? ? ? ? 2 1 2 INDEX RANGE SCAN I_IDL_UB21 (cr=2 pr=0 pw=0 time=29 us cost=2 size=0 card=2)(object id 238)


********************************************************************************


SQL ID: 83sp8xb9ytgkv Plan Hash: 0


BEGIN dbms_system.set_ev(21,2615,10046,12,\'SCOTT\'); END;


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 1


Fetch 0 0.00 0.00 0 0 0 0


------- ------ -------- ---------- ---------- ---------- ---------- ----------


total 2 0.00 0.00 0 0 0 1


Misses in library cache during parse: 1


Optimizer mode: ALL_ROWS


Parsing user id: SYS


********************************************************************************


SQL ID: b1wc53ddd6h3p Plan Hash: 1637390370


select audit$,options


from


?procedure$ where obj#=:1


call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------


Parse 2 0.00 0.00 0 0 0 0


Execute 2 0.00 0.00 0 0 0 0


Fetch 2 0.00 0.00 0 6 0 2


------- ------ -------- ---------- ---------- ---------- ---------- ----------


total 6 0.00 0.00 0 6 0 2


Misses in library cache during parse: 1


Misses in library cache during execute: 1


Optimizer mode: CHOOSE


Parsing user id: SYS (recursive depth: 1)


Number of plan statistics captured: 2


Rows (1st) Rows (avg) Rows (max) Row Source Operation


---------- ---------- ---------- ---------------------------------------------------


? ? ? ? 1 1 1 TABLE ACCESS BY INDEX ROWID PROCEDURE$ (cr=3 pr=0 pw=0 time=46 us cost=2 size=47 card=1)


? ? ? ? 1 1 1 INDEX UNIQUE SCAN I_PROCEDURE1 (cr=2 pr=0 pw=0 time=26 us cost=1 size=0 card=1)(object id 231)


********************************************************************************


SQL ID: 8swypbbr0m372 Plan Hash: 893970548


select order#,columns,types


from


?access$ where d_obj#=:1


call count cpu elapsed disk query current rows


------- ------ -------- ---------- ---------- ---------- ---------- ----------


Parse 2 0.00 0.00 0 0 0 0


Execute 2 0.00 0.00 0 0 0 0


Fetch 9 0.00 0.00 0 18 0 7


------- ------ -------- ---------- ---------- ---------- ---------- ----------


total 13 0.00 0.00 0 18 0 7


Misses in library cache during parse: 1


Misses in library cache during execute: 1


Optimizer mode: CHOOSE


Parsing user id: SYS (recursive depth: 1)


Number of plan statistics captured: 2


Rows (1st) Rows (avg) Rows (max) Row Source Operation


---------- ---------- ---------- ---------------------------------------------------


? ? ? ? 7 4 7