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

2015-07-16 12:08:18 · 作者: · 浏览: 26
27.trc


Sort options: default


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


count = number of times OCI procedure was executed


cpu = cpu time in seconds executing


elapsed = elapsed time in seconds executing


disk = number of physical reads of buffers from disk


query = number of buffers gotten for consistent read


current = number of buffers gotten in current mode (usually for update)


rows = number of rows processed by the fetch or execute call


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


SQL ID: 4tk6t8tfsfqbf Plan Hash: 0


alter session set sql_trace=true


call count cpu elapsed disk query current rows


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


Parse 0 0.00 0.00 0 0 0 0


Execute 1 0.00 0.00 0 0 0 0


Fetch 0 0.00 0.00 0 0 0 0


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


total 1 0.00 0.00 0 0 0 0


Misses in library cache during parse: 0


Misses in library cache during execute: 1


Optimizer mode: ALL_ROWS


Parsing user id: SYS


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


SQL ID: 7cfz5wy9caaf4 Plan Hash: 4015672053


SELECT NAME NAME_COL_PLUS_SHOW_PARAM,DECODE(TYPE,1,\'boolean\',2,\'string\',3,


? \'integer\',4,\'file\',5,\'number\', 6,\'big integer\', \'unknown\') TYPE,


? DISPLAY_VALUE VALUE_COL_PLUS_SHOW_PARAM


FROM


?V$PARAMETER WHERE UPPER(NAME) LIKE UPPER(:NMBIND_SHOW_OBJ) ORDER BY


? NAME_COL_PLUS_SHOW_PARAM,ROWNUM


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 2 0.00 0.00 0 0 0 1


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


total 4 0.01 0.01 0 0 0 1


Misses in library cache during parse: 1


Misses in library cache during execute: 1


Optimizer mode: ALL_ROWS


Parsing user id: SYS


Number of plan statistics captured: 1


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


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


? ? ? ? 1 1 1 SORT ORDER BY (cr=0 pr=0 pw=0 time=9094 us cost=2 size=2128 card=1)


? ? ? ? 1 1 1 COUNT (cr=0 pr=0 pw=0 time=8984 us)


? ? ? ? 1 1 1 HASH JOIN (cr=0 pr=0 pw=0 time=8979 us cost=1 size=2128 card=1)


? ? ? ? 1 1 1 FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=6028 us cost=0 size=94 card=1)


? ? ? 2752 2752 2752 FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=3134 us cost=0 size=203400 card=100)


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


SQL ID: asvzxj61dc5vs Plan Hash: 3028786551


select timestamp, flags


from


?fixed_obj$ where obj#=:1


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 0 2 0 0


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


total 3 0.00 0.00 0 2 0 0


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: 1


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


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


? ? ? ? 0 0 0 TABLE ACCESS BY INDEX ROWID FIXED_OBJ$ (cr=2 pr=0 pw=0 time=15 us cost=2 size=17 card=1)


? ? ? ? 0 0 0 INDEX UNIQUE SCAN I_FIXED_OBJ$_OBJ# (cr=2 pr=0 pw=0 time=10 us cos