Optimizer statistics are collected with the DBMS_STATS package, including its GATHER_*_STATS procedures. Oracle Database also performs automatic optimizer-statistics collection by default through AutoTask jobs that run during predefined maintenance windows. Stale statistics can still be used by the optimizer; they are identified as candidates for regathering rather than categorically ignored.
Community Discussion