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

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


? ? ? ? 1 1 1 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=3 pr=0 pw=0 time=38 us cost=3 size=82 card=1)


? ? ? ? 1 1 1 INDEX RANGE SCAN I_OBJ1 (cr=2 pr=0 pw=0 time=31 us cost=2 size=0 card=1)(object id 36)


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


SQL ID: ga9j9xk5cy9s0 Plan Hash: 1697022209


select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#,length,piece


from


?idl_sb4$ 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 7 0.00 0.00 1 18 0 4


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


total 13 0.00 0.00 1 18 0 4


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_SB4$ (cr=5 pr=0 pw=0 time=205 us cost=3 size=19 card=1)


? ? ? ? 2 1 2 INDEX RANGE SCAN I_IDL_SB41 (cr=3 pr=0 pw=0 time=36 us cost=2 size=0 card=1)(object id 239)


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


SQL ID: cvn54b7yz0s8u Plan Hash: 3246118364


select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#,length,piece


from


?idl_ub1$ 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 6 0.00 0.00 3 20 0 5


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


total 12 0.00 0.00 3 20 0 5


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


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


? ? ? ? 1 2 2 TABLE ACCESS BY INDEX ROWID IDL_UB1$ (cr=5 pr=1 pw=0 time=160 us cost=3 size=44 card=2)


? ? ? ? 1 2 2 INDEX RANGE SCAN I_IDL_UB11 (cr=3 pr=0 pw=0 time=30 us cost=2 size=0 card=2)(object id 236)


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


SQL ID: c6awqs517jpj0 Plan Hash: 1319326155


select /*+ index(idl_char$ i_idl_char1) +*/ piece#,length,piece


from


?idl_char$ 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.01 1 9 0 1


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


total 10 0.00 0.01 1 9 0 1


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


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


? ? ? ? 1 0 1 TABLE ACCESS BY INDEX ROWID IDL_CHAR$ (cr=3 pr=0 pw=0 time=3509 us cost=3 size=21 card=1)


? ? ? ? 1 0 1 INDEX RANGE SCAN I_IDL_CHAR1 (cr=2 pr=0 pw=0 time=30 us cost=2 size=0 card=1)(object id 237)


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