View previous topic :: View next topic |
Author |
Message |
abc2000 Beginner
Joined: 22 Mar 2006 Posts: 18 Topics: 9
|
Posted: Tue Aug 08, 2006 9:17 pm Post subject: DB2 RUNSTATS time too long, How to reduce the time? |
|
|
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 |
|
 |
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Wed Aug 09, 2006 3:29 am Post subject: |
|
|
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 |
|
 |
videlord Beginner
Joined: 09 Dec 2004 Posts: 147 Topics: 19
|
Posted: Wed Aug 09, 2006 7:24 pm Post subject: |
|
|
130GB is one partition all the whole tablespace?
If there are several partitions in 130GB, try RUNSTATS parallelly by partitions |
|
Back to top |
|
 |
|
|