TKPROF: Release 10.2.0.3.0 - Production on 星期四 2月 28 09:35:09 2019
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: E:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_2608.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
********************************************************************************
select 'x'
from
dual
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 3 0.00 0.01 0 0 0 0
Execute 3 0.00 0.00 0 0 0 0
Fetch 3 0.00 0.00 0 0 0 3
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 9 0.00 0.01 0 0 0 3
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61
Rows Row Source Operation
------- ---------------------------------------------------
1 FAST DUAL (cr=0 pr=0 pw=0 time=11 us)
********************************************************************************
begin :id := sys.dbms_transaction.local_transaction_id; end;
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 6 0.00 0.00 0 0 0 0
Execute 6 0.00 0.00 0 0 0 6
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 12 0.00 0.00 0 0 0 6
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 61
********************************************************************************
select sysdate
from
dual
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 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 0 0 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61
Rows Row Source Operation
------- ---------------------------------------------------
1 FAST DUAL (cr=0 pr=0 pw=0 time=11 us)
********************************************************************************
begin
if :enable = 0 then
sys.dbms_output.disable;
else
sys.dbms_output.enable(:size);
end if;
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
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61
********************************************************************************
select count(*)
from
t1
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 20 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 20 0 1
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61
Rows Row Source Operation
------- ---------------------------------------------------
1 SORT AGGREGATE (cr=20 pr=0 pw=0 time=1629 us)
10000 TABLE ACCESS FULL T1 (cr=20 pr=0 pw=0 time=30055 us)
********************************************************************************
declare
Lines sys.dbms_output.chararr;
begin
:NumLines := 10;
sys.dbms_output.get_lines(lines => Lines, numlines => :NumLines);
if :NumLines > 0 then :Line0 := Lines(1); end if;
if :NumLines > 1 then :Line1 := Lines(2); end if;
if :NumLines > 2 then :Line2 := Lines(3); end if;
if :NumLines > 3 then :Line3 := Lines(4); end if;
if :NumLines > 4 then :Line4 := Lines(5); end if;
if :NumLines > 5 then :Line5 := Lines(6); end if;
if :NumLines > 6 then :Line6 := Lines(7); end if;
if :NumLines > 7 then :Line7 := Lines(8); end if;
if :NumLines > 8 then :Line8 := Lines(9); end if;
if :NumLines > 9 then :Line9 := Lines(10); end if;
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
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 61
********************************************************************************
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 13 0.00 0.01 0 0 0 0
Execute 13 0.00 0.01 0 0 0 8
Fetch 5 0.00 0.00 0 20 0 5
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 31 0.00 0.03 0 20 0 13
Misses in library cache during parse: 5
Misses in library cache during execute: 2
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 39 0.01 0.01 0 0 0 0
Execute 141 0.03 0.03 0 0 0 0
Fetch 211 0.03 0.05 6 494 0 253
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 391 0.07 0.10 6 494 0 253
Misses in library cache during parse: 21
Misses in library cache during execute: 21
13 user SQL statements in session.
141 internal SQL statements in session.
154 SQL statements in session.
********************************************************************************
Trace file: E:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_2608.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
13 user SQL statements in trace file.
141 internal SQL statements in trace file.
154 SQL statements in trace file.
27 unique SQL statements in trace file.
1444 lines in trace file.
31 elapsed seconds in trace file.