Tracing SQL Statements
Tracing SQL Statements
Tracing SQL Statements
7/24/13 11:08 PM
Tracing SQL
statements
Janusz R. Getta
7/24/13 11:08 PM
Janusz R. Getta
7/24/13 11:08 PM
7/24/13 11:08 PM
7/24/13 11:08 PM
Janusz R. Getta
7/24/13 11:08 PM
7/24/13 11:08 PM
7/24/13 11:08 PM
7/24/13 11:08 PM
Redo size denotes the total amount of redo data generated in bytes by the
traced statement
The total number of SQL*Net roundtrips to/from client means the
total number of messages sent to and received from the client
The total number of rows processed means the number of rows
processed during the execution of the traced statement
Janusz R. Getta
7/24/13 11:08 PM
10
7/24/13 11:08 PM
cpu
elapsed
disk
query
current
-------- ---------- ---------- ---------- ---------0.00
0.03
4
66
0
0.00
0.00
0
0
0
0.00
0.00
1
1
0
-------- ---------- ---------- ---------- ---------0.00
0.04
5
67
0
rows
---------0
0
0
---------0
The execution statistics contain information about number of times Parse, Execute,
and Fetch occurred (column count), total CPU time spent, (column cpu), elapsed
time required (column elapsed), number of disk physical reads required (column
disk), number of reads in consistent (column query) or current (column current)
mode, and number of rows processed (column rows)
Janusz R. Getta
11
7/24/13 11:08 PM
12
7/24/13 11:08 PM
Janusz R. Getta
13
7/24/13 11:08 PM
Janusz R. Getta
14
7/24/13 11:08 PM
Janusz R. Getta
15
7/24/13 11:08 PM
References
G. Harrison Oracle Performance Survival Guide, Prentice
Hall, 2010
C. Millsap, Optimizing Oracle Performance, O'Reilly and Assoc., 2003,
chapters 5, 6 (UoW Library)
C. Antognini,Troubleshooting Oracle Performance, Apress, 2008
Janusz R. Getta
16