SysAutoRun.execStatistics Method

Determines whether Oracle update statistics are calculated. If this feature is enabled, it updates the statistics of the indexes used in Microsoft Dynamics AX.

protected boolean execStatistics(XmlNode _command)

Run On

Client

Parameters

Parameter

Description

_command

The XML node to get the value from.

Return Value

true if execution is successful; otherwise, false.

Remarks

The execStatistics method is called when the <Statistics> tag is used in the configuration file when Microsoft Dynamics AX is started. For more information, see the SysAutoRun class.

Execution of this method is controlled by the SysAutoRun.execCommand method.

The <Statistics> tag has the following attributes:

  • enabled - determines whether Oracle update statistics are enabled. By default, they are not enabled.

  • calcMethod - determines whether statistics are estimated (the default, recommended value) or calculated. The possible values for the attribute are Estimate and Compute.

  • interval - determines the frequency at which update statistics are run. The default value is Daily. Other options are Weekly and Monthly.

  • startingDate - the first day on which statistics should be run.

  • startingTime - the time of day statistics should be updated.

  • runNow - causes the statistics to be updated as soon as possible if runNow is set to true.

See Also

SysAutoRun Class