Home » RDBMS Server » Server Administration » Have difficulty in reading tkprof result.Please help.
Have difficulty in reading tkprof result.Please help. [message #51634] Tue, 04 June 2002 04:22 Go to next message
chao_ping
Messages: 2
Registered: June 2002
Junior Member
hi, dbas:
From top result i noticed that there is an oracle server process consuming much cpu, so i traced it and tkprofed it and i got the following result:
select user_account into :b0
from
UserPrivateInfo where user_id=:b1

call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 5 0.02 0.00 0 0 0 0
Execute 30964 2.76 2.44 0 0 0 0
Fetch 30964 3.49 2.64 0 123865 0 30964
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 61933 6.27 5.08 0 123865 0 30964

Misses in library cache during parse: 1
Optimizer goal: FIRST_ROWS
Parsing user id: 32

Rows Row Source Operation
------- ---------------------------------------------------
1 TABLE ACCESS BY INDEX ROWID USERPRIVATEINFO
2 INDEX UNIQUE SCAN (object id 6593)
as you see, this is just a select statement, there should not be any execute cpu, how now there is so much, as you see.
Can someone help me on this issue?
thanks.
And another strange thing:
It is just during a about 5-minute's trace.It seems it is impossible that it really ran this query for that 20k times!
Some possible reason?
Thanks.
__________________
Re: Have difficulty in reading tkprof result.Please help. [message #51646 is a reply to message #51634] Tue, 04 June 2002 12:45 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
If you have a loop then it will show up plenty of time. e.g.
for i in (select user_id from user_tab)
loop
-- do the select
end loop;

Best to see the tkprof manual for accurate explanation of when the CPU is shown as Execute or Fetch.
http://oradoc.photo.net/ora817/DOC/server.817/a76992/ch14_str.htm#1311
Previous Topic: real time priority
Next Topic: Re: error:ORA-12154
Goto Forum:
  


Current Time: Mon Sep 16 18:21:00 CDT 2024