Get started Bring yourself up to speed with our introductory content.

Physical Reads and Logical Reads

On the DSPFD listing, what is the difference between Physical Reads and Logical Reads?

I need to count how may times the file has been accessed. There are no logicals over this file and the file is always accessed by the key on the physical.

Logical Reads is the number of Logical I/O requests made by DB2 for the physical file (or table). Physical Reads is the actual number of Physical I/O operations performed to satisfy the Logical I/O requests. DB2 might have done a logical I/O request, but there's no physical I/O operation performed because that part of the file was already in memory.


Check out this Search400.com Featured Topic: Expert advice on DB2

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: Tips, tutorials and more.

Dig Deeper on iSeries SQL commands and statements