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 > About RuNsTaTz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-08, 10:06
linakichi linakichi is offline
Registered User
 
Join Date: Aug 2008
Posts: 45
About RuNsTaTz

Hi, folks

I'm currently exploring LUW's and OS/390's DB2's RUNSTATS. I know that the this function will gather the statistics needed by the optimizer, but the question is, which table will consist the statistics ?

And, could I display a list of the statistics gathered by the RUNSTATS ??

Oh yeah, if I'm not mistaken, there a report generator function at OS/390's DB2's RUNSTATS which will output in SYSPRINT, but, since I don't have that OS, I can't analyze the content myself T_T

If anyone have any information concerning this matter, I'll be very grateful...
Reply With Quote
  #2 (permalink)  
Old 10-28-08, 10:17
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
For LUW, look at the views in sysstat schema.

I do not know about Z/OS.

Andy
Reply With Quote
  #3 (permalink)  
Old 10-28-08, 18:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The statistics are in various tables in the DB2 catalog (SYSIBM.SYS....). These tables are documented in the Appendix of the SQL Reference manual.

Some of the statistics are updateable with regular SQL.
__________________
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
  #4 (permalink)  
Old 10-30-08, 15:38
madhu_kaza madhu_kaza is offline
Registered User
 
Join Date: Apr 2008
Posts: 39
Hi,

The statistics are collected into SYSIBM.SYSTABLES, SYSIBM.SYSCOLUMNS, SYSIBM.SYSCOLDIST catalog tables

You can query these tables with normal SQL statements and get the statistics info from these tables.

You can check for statistics columns of these tables in DB2 information center.
http://publib.boulder.ibm.com/infoce...ablestable.htm

Thanks,
Madhavi.
Reply With Quote
  #5 (permalink)  
Old 10-31-08, 06:15
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
For DB2 LUW, you have to use the tables in the SYSSTAT schema instead.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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