If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > log reads

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-05-11, 12:18
db2aix db2aix is offline
Registered User
 
Join Date: Jul 2009
Location: USA
Posts: 50
log reads

When does DB2 need to do log reads?

Database snap:
Log pages read = 2608
Reply With Quote
  #2 (permalink)  
Old 02-05-11, 12:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
  • Rollback (explicitly executed by application or implicitly executed by DB2 when an SQL error is encountered),
  • crash recovery,
  • rollforward logs (usually after a restore).
  • Also, if you have 9.7 and have curr_commit enabled for the database (default on newly created databases) then logs may be read whenever a lockwait situation would otherwise occur to retrieve the state of the data before the lock existed.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-05-11, 13:10
db2aix db2aix is offline
Registered User
 
Join Date: Jul 2009
Location: USA
Posts: 50
How about log pages read for HADR replication?
Reply With Quote
  #4 (permalink)  
Old 02-05-11, 17:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Yes, HADR would have to at least read the log buffer, and if HADR was in catch-up mode, log disk reads would be required. I don't know if the snapshot value of log pages read includes the log buffer.

For that matter, same applies to other processes that read the log buffer or log disk, such as SQL Replication, Q-Replication, CDC (Change Data Capture), etc.

However, some of log reads may be outside of the DB2 engine and maybe not captured in the database snapshot. The logs are just OS files, and anyone with the correct UNIX permissions can read the files without DB2 knowing about it.

I am not sure why you are so concerned about it.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On