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 > Runstats : is there a way to monitor?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-08, 14:05
svrider svrider is offline
Registered User
 
Join Date: Jul 2002
Posts: 39
Question Runstats : is there a way to monitor?

Hello everyone,

First off, we're using DB2 8.1.7 on Linux.

We use the dabase to store a data warehouse. We're about to do a major load of data, something like 7 years, that will run for about 20 to 25 days. The data is divided in months, so each data-month is a cycle, blah, blah, blah.

Every now and then, we need to do a Runstats on the tables to keep performance during the loads to help Informatica do its thing.

Is there a way to know, using the Health Monitor or some other tools, that the Runstats have to be executed? Is there some kind of alerts that we can set up?

The thing is that when we run the Runstats it takes time and if we could only run it when we need it instead of at the end of every cycle, we might save a few days in the end.

When we move to production and the ETL jobs run periodically, we don't care if the Runstats are executed everyday.

Thanks a lot.

JFS.
Reply With Quote
  #2 (permalink)  
Old 04-25-08, 14:29
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
am I reading it correct that you need to have an upto date stats to help load data?

btw. is that 650 or 1k sv?
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 04-26-08, 11:02
svrider svrider is offline
Registered User
 
Join Date: Jul 2002
Posts: 39
Yes, you're reading correctly, but the thing is that we want to execute the runstats when needed. Since this operation can take a while, we don't want to run it every cycle (2 or 3 times a day), but only when take the time to do it when it is needed (something like every other cycle). So if we could have a way to monitor the statistics state, it would help the over all load time. We do the Runstats on 2 schemas in the same database.

To answer your question, when I first registered here it was a 650... went on to an F4i (stolen) then a ZX7R (now osed as a track bike) and now a 1000 2006. The SV1KS is the besk bike I've owned.
Reply With Quote
  #4 (permalink)  
Old 04-26-08, 18:19
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
I am not sure how current stats will help to speed up your load, but if you still interested in keeping stats upto date. youwould have to write a script that checks record count in the table currently with card column value and if there is more then 15-20% diff do stats.

Stats are not a golden bullet. i have seen way too manyt people spend too much time concentrating on stats then on real problem

zx7 should be fun on the track. What tracks have youbeen too? Are you going to a GP in Indy this year? I have an 07 fjr at the moment
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #5 (permalink)  
Old 04-26-08, 18:35
svrider svrider is offline
Registered User
 
Join Date: Jul 2002
Posts: 39
Thanks. We thought about the 15%-20%.

I live in Montréal (Québec), so no, I won't go to the Indy GP, but I'd love to. There are many small tracks not to far. Unfortunately, we can't use the Circuit Gilles Villeneuve. When it is not used for major events, like F1 or Nascar or Champ Car, it is only for bicycles and roller blades...

The other "real" track we have close by is at Mont-Tremblant, you might know about it it is a famous track. F1 cars used to go there before the track in Montréal, last year there was a race in the Champ Car series. I'm going to that track 2 days in August.
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