From: Puneet on
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
From: Kay Kanekowski on
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/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.ugref/db2z_samplesrunstats.htm

hth
Kay
From: Naresh Chainani on
On Apr 30, 2:44 am, Puneet <puneet...(a)gmail.com> wrote:
> 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
 | 
Pages: 1
Prev: Yellowfin 5.0 Webinar
Next: Yellowfin Launches 5.0