It's all about the answers!

Ask a question

Should I run db statistics twice during one maintainance window?


Krzysztof Kaźmierczyk (7.4k373103) | asked Jan 25 '17, 4:48 a.m.

I am upgrading from 4.0.6 to 6.0.2 through 5.0.2 during one maintenance window. Is it needed to update database statistics before upgrade from 5.0.2? Or it is enough to run it only once?

2 answers



permanent link
Krzysztof Kaźmierczyk (7.4k373103) | answered Jan 25 '17, 4:49 a.m.

There is no need to run database statistics twice. You can run it only before upgrade from 4.0,6.


permanent link
Grazielle Codogno (1536) | answered Jan 25 '17, 6:01 a.m.

You're right. you only need once. The purpose is to keep the plans updates to the best
Although make sure you're not collecting only a sample, and running it to all tables, ok?

SQL : https://msdn.microsoft.com/en-us/library/ms187348.aspx
Oracle : https://docs.oracle.com/cd/B28359_01/server.111/b28274/stats.htm#PFGRF003
DB2 : http://www.ibm.com/support/knowledgecenter/SSEPGG_10.1.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0001980.html

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.