Use
With this procedure you can display statistical information, check the requirements for new statistics, delete superfluous statistics, and create missing statistics for the Oracle database with SAPDBA. Using this procedure, you can find information on the cost-based optimizer (CBO) and control how SAPDBA updates statistics.
For more information on update statistics with SAPDBA, see
Update Statistics for the Cost-Based Optimizer with SAPDBA.We strongly recommend you to use the
Procedure
This display tells you how many tables or indexes of the user SAPR3 have no statistics, and how many tables entered in the control table
DBSTATC have obsolete statistics ( that is, TODO in DBSTATC is set).It also gives you information about the number of tables entered in the control table
DBSTATC , the number of tables explicitly excluded from the statistics ( Activ = N ), the number of tables and indexes excluded from the CBO statistics ( Activ = R or N ), and the number of tables that are marked with a customer indicator in the control table (.. user defined values).Option |
Description |
a |
Delta (percent) for new stat. indicator |
b |
Forced check (refresh marked tables) |
c |
Time limitation |
d |
SAPR3 Table (for option g) |
e |
Tablespace (for option h) |
f |
Start check for tables in control table DBSTATC |
g |
Start check for table |
h |
Start check for tables in tablespace |
With these options you can:
SAPDBA deletes tables not required for the R/3 System, such as pool and cluster tables or tables marked as not required in the DBSTATC control table ( Activ = N or R ).
When, for example, you add one or more new tables or indexes, you can easily create statistics for them using this menu option.