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 > Detecting MQT Refresh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-29-10, 11:31
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Detecting MQT Refresh

Is there an easy way (through SQL) that I can use to detect if a MQT that is defined as "DATA INITIALLY DEFERRED REFRESH DEFERRED MAINTAINED BY SYSTEM" is being refreshed? The underlying tables are constantly being modified so it needs to be "REFRESH DEFERRED". We plan on manually refreshing it once per day (cron), but we want to detect if it is being refreshed before a query is allowed against it. We do not want to try a query against the table and get a lock timeout.

DB2 9.5.5 on RH linux

Andy
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