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 > Online runstats and performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-08, 16:13
bustacap bustacap is offline
Registered User
 
Join Date: Apr 2007
Posts: 9
Online runstats and performance

We are running db2 8.1 fixpack 10 on AIX 5.2 with MQ 5.3 as our transaction manager.

Our system recently went to 7x24 operation and we have switched over to online maintenance activities. We are noticing a slowdown in processing online transactions. Although the DB2 logs do not report any issues we are wondering if online index reorg or online runstats (allow write access) will do any locking at some point? Even for just a short period of time? And if so could this degrade performance?
Reply With Quote
  #2 (permalink)  
Old 02-04-08, 16:43
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Online maintenance operations have to operate on the real data to have any effect. Since other transactions may be going which should usually get correct results when operating on the data, it is mandatory that DB2 synchronizes the data access. So the answer is "yes, online reorg must acquire locks". (I'm not sure if runstats will simply read uncommitted data.)
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 02-05-08, 08:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes, runstats uses dirty read to calculate stats. It uses an "intent none" type lock which will only bar "super exclusive" locks.

Andy
Reply With Quote
  #4 (permalink)  
Old 02-05-08, 09:46
bustacap bustacap is offline
Registered User
 
Join Date: Apr 2007
Posts: 9
thanks guys!
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