At a mininum, you need STATSUSAGE logging enabled for an Analyze Job to making recommendations regarding missing and used stats. Enabling the XMLPLAN option as well may result in better quality of recommendations as it provides additional plan data regarding the accuracy of Optimizer spool size estimates. However, there is more overhead with XMLPLAN. Analyze Jobs will not use any of the other mentioned logging options including STEPINFO.
For more info, see Chapter 13 of the AutoStats Orange Book.
Chandra,
At a mininum, you need STATSUSAGE logging enabled for an Analyze Job to making recommendations regarding missing and used stats. Enabling the XMLPLAN option as well may result in better quality of recommendations as it provides additional plan data regarding the accuracy of Optimizer spool size estimates. However, there is more overhead with XMLPLAN. Analyze Jobs will not use any of the other mentioned logging options including STEPINFO.
For more info, see Chapter 13 of the AutoStats Orange Book.
Thanks, -Carrie