Hi All, I have 2 doubts regarding DB2
1 ) Does dynamic SQL snapshot contains only dynamic SQL or both static and dynamic .
If only dynamic, when I flush the dynamic package cache why it only deletes some of the data and not all. Also , I can see some of the static SQLs executed by me in the dynamic SQL snapshot.
2) while going through asynchronous and synchronous reads, I came across two different formulas to calculate it
for synchronous read ratio :
SRP = 100 - (((Asynchronous pool data page reads + Asynchronous pool index page reads) x 100) / (Buffer pool data physical reads + Buffer pool index physical reads))
and for asynchronous read ratio :
ARP = ((Asynchronous pool data page reads + Asynchronous pool index page reads) / (Buffer pool data logical reads + Buffer pool index logical reads)) * 100%
My confusion is why while taking synchronous read ratio we are comapring it with physical reads only and while calculating asynchronous read ratio we are comparing it with logical reads. Shouldn't ARR be compared with physical reads only and if we are calculating the number of Asynchronous pages read, shouldn't we subtract unread prefetch pages from the numerator of ARR formula.
Is I am missing something somewhere. Can anyone explain it to me.I have searched the whole internet but never got any satisfactory reasons.
Thanks for help