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 > automatic runstats

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-09, 12:41
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
automatic runstats

Hello

What parameters does DB2 use to perform automatic runstats? Does it collect distribution or index statistics?

Thank you!
Reply With Quote
  #2 (permalink)  
Old 08-02-09, 13:14
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2zip
Does it collect distribution or index statistics?
I don't think it does, unless you have the appropriate statistics profile in place for the table.
Reply With Quote
  #3 (permalink)  
Old 08-02-09, 16:48
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
Will automatic runstats execute without any parameters by default? runstats on table table-name?
Reply With Quote
  #4 (permalink)  
Old 08-03-09, 02:16
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
For this you'll need the new option "SET PROFILE". The runstats generated by automatic runstats will use your pre-defined profile for each table.
Reply With Quote
  #5 (permalink)  
Old 08-03-09, 09:33
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
Quote:
Originally Posted by dr_te_z
The runstats generated by automatic runstats will use your pre-defined profile for each table.

What parameters will it use if I do not have pre-defined profile?
Reply With Quote
  #6 (permalink)  
Old 08-03-09, 10:35
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Auto runstats uses "with distribution and sampled detailed indexes all" if there is no profile set for the table
Reply With Quote
  #7 (permalink)  
Old 08-03-09, 19:19
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
Thank you! Where can I find information about this? I don't see in DB2 manual.
Reply With Quote
  #8 (permalink)  
Old 08-04-09, 11:27
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I don't think this info is in the manuals. I'll see if there is a technote on this.
Reply With Quote
  #9 (permalink)  
Old 08-04-09, 11:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2zip
Where can I find information about this? I don't see in DB2 manual.
Automatic statistics collection

"By default, the statistics that are collected are basic table statistics with distribution information, and detailed index statistics using sampling (RUNSTATS options WITH DISTRIBUTION AND SAMPLED DETAILED INDEXES ALL). You can customize the type of statistics collected by enabling statistics profiling, which uses information about previous database activity to determine which statistics are required by the database workload."
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