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 > Runstat question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-05, 22:19
matthewlau matthewlau is offline
Member
 
Join Date: Dec 2001
Posts: 78
Runstat question

Can I do runstat on more than 1 table within a database at the same table, any concurrent problem?
Reply With Quote
  #2 (permalink)  
Old 11-17-05, 00:54
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There might be some concurrency issues when DB2 goes to update the stats in the catalog, but I would think it would just result in a short lock wait at worst, and not any kind of deadlock.
__________________
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 11-17-05, 01:24
matthewlau matthewlau is offline
Member
 
Join Date: Dec 2001
Posts: 78
Marcus_A,
Thx.

Do you mean there is concurrent issue on SYSSTAT table?
Reply With Quote
  #4 (permalink)  
Old 11-17-05, 08:48
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
I suppose the question is:
Can I do runstat on more than 1 table within a database at the same TIME, any concurrent problem ?

No problem in the system catalog tables.

But you might consider: with more than one table in a tablespace - this is not a problem of doing but who gets to read the pages first ... Still should not be a problem either, only for very fragmented data.

It does not make sense to run runstats twice and in parallel on the same table ...
__________________
Juliane
Reply With Quote
  #5 (permalink)  
Old 11-17-05, 14:54
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by matthewlau
Marcus_A,
Thx.

Do you mean there is concurrent issue on SYSSTAT table?
Runstats updates many more tables than the SYSSTAT table. My guess is that if any concurrency issue exists against the catalog tables, it would only be a very short lock wait, which you probably would not even notice.
__________________
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