db block gets, consistent gets [message #123796] |
Tue, 14 June 2005 18:14 |
rkl1
Messages: 97 Registered: June 2005
|
Member |
|
|
when we run set autotrace on or similar execution statistics, what does mean by db block gets and consistent gets. Are they very much cpu bound. What we need to do to see lower numbers.
|
|
|
|
Re: db block gets, consistent gets [message #124413 is a reply to message #123796] |
Sat, 18 June 2005 04:05 |
srraajesh
Messages: 63 Registered: May 2005
|
Member |
|
|
In continuationto the thread
I have two versions of a queries
1 using indexes on both the tables but the consistent gets count is 360
2. Uses index on only one of the table but the consistent gets count is 15.
Which one is better??
Thanks
Raajesh
|
|
|
|
|
Re: db block gets, consistent gets [message #399992 is a reply to message #123812] |
Fri, 24 April 2009 19:03 |
shrinika
Messages: 306 Registered: April 2008
|
Senior Member |
|
|
Mahesh, I just got one question while reading this thread....
After comiting the another session, consistent gets count
is showing 19. Why is this? Once we committed, it should
read from buffer... not from rollback segment. Why is showing
19 when all the changes are committed for emp table...
I just tested this in my machine..I just restarted the database.
Physical reads 50 is fine. Since it has to read from data file
first time... Very first time, why it is making 100 consistent calls..
further run, it is constantly showing 8..
scott@orcl> set autotrace traceonly statistics
scott@orcl> select * from emp;
14 rows selected.
Statistics
----------------------------------------------------------
515 recursive calls
0 db block gets
100 consistent gets
15 physical reads
0 redo size
1397 bytes sent via SQL*Net to client
508 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
7 sorts (memory)
0 sorts (disk)
14 rows processed
scott@orcl> /
14 rows selected.
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
8 consistent gets
0 physical reads
0 redo size
1397 bytes sent via SQL*Net to client
508 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
14 rows processed
scott@orcl> /
14 rows selected.
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
8 consistent gets
0 physical reads
0 redo size
1397 bytes sent via SQL*Net to client
508 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
14 rows processed
scott@orcl>
|
|
|
|
|
|
|
|
|
|
|
|