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.
MORE INFORMATION ON THIS TOPIC
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
Related Q&A from Kent Milligan
Create a host variable of the where in statement on the fly with dynamic SQL. Continue Reading
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ... Continue Reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ... Continue Reading