Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PIO, LIO and the cost of an Oracle query

OracleGuy777Sep 3 2008 — edited Sep 6 2008
hi guys,

these are the definitions I have read at

[http://www.orafaq.com/wiki|http://www.orafaq.com/wiki]

PIO or Physical I/O refers to reading and writing from/to disk.
LIO or Logical I/O refers to reading and writing from/to memory (for example, from/to the SGA Buffer Cache)

Basically, from what I read, the COST is measured in PIOs.

If we had a query that returned 20 rows, and:

2 rows of the 20 were found in datablock X in Buffer cache
4 rows of the 20 were found in datablock Y in Buffer cache

2 rows of the 20 were found in datablock A on disk
2 rows of the 20 were found in datablock B on disk
2 rows of the 20 were found in datablock C on disk
2 rows of the 20 were found in datablock D on disk
6 rows of the 20 were found in datablock E on disk

then would it be correct to say that LIO is 2 and PIO is 5?

And we'd say the cost of this operation was 5. Is that correct?

thanks
This post has been answered by Jonathan Lewis on Sep 4 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2008
Added on Sep 3 2008
17 comments
5,895 views