0
I am passing an Oracle protocol for DB2 and I am not able to run on DBMS_STATS account.GATHER_TABLE_STATS :
DBMS_STATS.GATHER_TABLE_STATS ('DMTLDBR','TB_FATO_OBJETIVO',PART_MES_ANT,10, TRUE,'FOR ALL COLUMNS SIZE REPEAT',4,'ALL',TRUE,null,null,null,FALSE);
DBMS_STATS.GATHER_TABLE_STATS('DMTLDBR','TB_FATO_AGR_SEMAN_DATAEXT_CUST',PART_MES_ANT,10, TRUE,'FOR ALL COLUMNS SIZE REPEAT',4,'ALL',TRUE,null,null,null,FALSE);
What I must change for the process to run, I have DBMS error;
Thank you!
Ricardo, Thanks for your help.
RUNSTATS
in DB2 it does not recognize. You know what the syntax would look likeDBMS_STATS.GATHER_TABLE_STATS ('DMTLDBR','TB_FATO_OBJETIVO',PART_MES_ANT,10, TRUE,'FOR ALL COLUMNS SIZE REPEAT',4,'ALL',TRUE,null,null,null,FALSE);
with theRUNSTATS
? I’m looking for tutorials but I can’t find anything.– Olívia_Palito
do not know well db2 nor the
RUNSTATS
to help you, I would have to read the documentation and do tests, but as I said, I should first run the query without any hint/enhancement, test, see if the performance is good and maybe not need, if you need to analyze the execution plan and experiment with possible options that leave the query with better performance.– Ricardo Pontual
Obrigado Ricardo!!!
– Olívia_Palito