dbTalk Databases Forums  

runstats on a table partitions

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss runstats on a table partitions in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Puneet
 
Posts: n/a

Default runstats on a table partitions - 04-30-2010 , 04:44 AM






Hello Experts,

Is it possible to execute runstats only on a specific partition of a
partitioned table in the database? Looking for an equivalent of oracle
dbms_stats.gather_table_stats for a partition of partitioned table.

Thanks,
Puneet

Reply With Quote
  #2  
Old   
Kay Kanekowski
 
Posts: n/a

Default Re: runstats on a table partitions - 04-30-2010 , 08:21 AM






Hi Puneet,
try something like this (it's for DB2 on z/OS, but on LUW there will
something similar)

RUNSTATS TABLESPACE DSN8D91A.DSN8S91E PART 1 INDEX(DSN8910.XEMP1 PART 1)

http://publib.boulder.ibm.com/infoce...esrunstats.htm

hth
Kay

Reply With Quote
  #3  
Old   
Naresh Chainani
 
Posts: n/a

Default Re: runstats on a table partitions - 05-03-2010 , 10:57 AM



On Apr 30, 2:44*am, Puneet <puneet... (AT) gmail (DOT) com> wrote:
Quote:
Hello Experts,

Is it possible to execute runstats only on a specific partition of a
partitioned table in the database? Looking for an equivalent of oracle
dbms_stats.gather_table_stats for a partition of partitioned table.

Thanks,
Puneet
No, DB2 LUW does not allow collecting statistics for a partition of
range partitioned table. You will need to collect table level
statistics instead.

Naresh

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.