Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Collecting system statistics and making these available to the Optimizer is performed using program units within the DBMS_STATS() package. These are the program units which we will consider in this section:
We mentioned earlier the possibility of employing user-defined statistics tables as part of the statistics collection effort. We will now demonstrate the use of these tables with system statistics. Bear in mind that such tables may also be used when collecting any Optimizer statistics, although they are most helpful for system statistics.