If I do an auto trace in SQLplus, I get one result.
For example:
SQL> set autotrace on
SQL> select * from employees;
0 recursive calls
0 db block gets
1 consistent gets
0 physical reads
0 redo size
407 bytes sent via SQL*Net to client
381 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
But when I enable auto trace in the Toad editor, I do not get the same result.
In Toad I get the following.
select * from employees;
0 recursive calls
0 db block gets
3 consistent gets
0 physical reads
0 redo size
1183 bytes sent via SQL*Net to client
927 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
Why do I see discrepancies?
The network traffic is slightly different. The SQL Plus/Oracle communication is not the same as the Toad/Oracle communication. We are talking about a few hundred bytes.
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy