MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 RUNSTATS time too long, How to reduce the time?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
abc2000
Beginner


Joined: 22 Mar 2006
Posts: 18
Topics: 9

PostPosted: Tue Aug 08, 2006 9:17 pm    Post subject: DB2 RUNSTATS time too long, How to reduce the time? Reply with quote

DB2 RUNSTATS time too long, How to reduce the time?

We are DB2 for Z/OS V8.10,
I have a huge partition tablespace(130GB), I need 500 mins to RUNSTATS on the entire tablespace,
My statement is:
RUNSTATS TABLESPACE DATABS.TPSAPST
TABLE(ALL) INDEX(ALL) SHRLEVEL CHANGE

My Problem is RUNSTATS time too long, How to reduce the time?
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Wed Aug 09, 2006 3:29 am    Post subject: Reply with quote

Using TABLE(ALL) means, that you calculate statistics for all columns (!) of all tables. Do you really need that?

If the tablespaces is really huge as in your example, using only a sample would probably produce results that are valid enough for the optimizer to give good access paths.

Just my two cents
Christian
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Wed Aug 09, 2006 7:24 pm    Post subject: Reply with quote

130GB is one partition all the whole tablespace?
If there are several partitions in 130GB, try RUNSTATS parallelly by partitions
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group