Warning, this type of functionfacilitates, via a user interface that is homogenous with the software, the launch of procedures devolved to a database administrator. It is constructed to be launched by such an administrator (normally called DBA).
It therefore assumes a prior knowledge of database functioning and optimization in order to be used profitably.
However, an inappropriate usage of the function may pose serious performance problems and place the security of the software usage in peril.
This function is used to display and to generate or delete the statistics on the database.
These elements are presented in three tabs : the first gives the list of tables and the status of the statistics for each, the second gives the list of the indexes and the status of the statistics for each, the third gives the list of database parameters linked to the optimizer and the usage of the statistics.
Presentation
Used to identify the characteristics of the database used.
Close
Fields
The following fields are present on this tab :
| Nom de la base de données |
| Numéro de version de la base de données |
| Description de la version de la base de données |
Close
Presentation
This tab displays the list of tables and the status of the statistics for each of these.
It is possible to generate or delete the statistics :
The deletion of the statistics on a table will delete all the statistics generated for it and therefore also its indexes.
The generation of the statistics on a table will not generate the statistics on its indexes.
Close
Fields
The following fields are present on this tab :
Structure
|   |
|   |
|   |
|   |
|   |
|   |
|   |
|   |
|   |
Close
Functions accessed by right click on the grid
When there is an grid with multiple choice entries with a choice of response Yes / Noon each line, this function is used to respond Yes to all the lines from this line.
When there is an grid with multiple choice entries with a choice of response Yes / Noon each line, this function is used to respond No to all the lines from this line.
Used to refresh the display of the current line in the grid
Used to generate the statistics for the current line in the grid
Used to delete the statistics for the current line in the grid
Fermer
Presentation
This tab displays the list of indexes and the status of the statistics for each of these.
Close
Fields
The following fields are present on this tab :
| Used to define if the line must be processed in generation or deletion of the statistics, using the corresponding buttons at the bottom of the screen. |
| Name of the table in the database. |
| Indicate if the valid statistics are generated in the database. |
| Date of the last analysis of the statistics |
| Time of the last analysis of the statistics |
Close
It is possible to generate or delete the statistics :
AFC/APATCHA/40/210
AFC/APATCHA/40/215
Functions accessed by right click on the grid
Used to refresh the display of the current line in the grid
Used to generate the statistics for the current line in the grid
Used to delete the statistics for the current line in the grid
Fermer
Presentation
This tab presents the list of parameters for the database linked to the optimizer and the usage of the statistics.
Close
Fields
The following fields are present on this tab :
| Used to define if the line must be processed in generation or deletion of the statistics, using the corresponding buttons at the bottom of the screen. |
| Name of the table in the database. |
| Name of the index in the database |
| Indicate if the valid statistics are generated in the database. |
| Date of the last analysis of the statistics |
| Time of the last analysis of the statistics |
Close
It is not possible to operate on these values here.
Functions accessed by right click on the grid
Fields
The following fields are present on this tab :
Table Optimizer parameters
| Display the parameters, linked to the optimizer and the use of the statistics. The parameters present depend on the Oracle version. These parameters cannot be modified from this option. |
|   |
|   |
|   |
Close
This button, also accessible using the short cut, used to refresh the display of the tabs. |
Used to generate the statistics for all the selected lines in the grids in the tabs Tables and Index. |
Used to delete the statistics for all the selected lines in the grids in the tabs Tables and Index. |
This depends on the rate and volume of changes to the data in the database.
The statistics for an object become obsolete when a large volume of DML activity takes place on the object.
It is therefore necessary to follow a mass insertion or deletion by a new analysis, in order to ensure the correspondence between the statistics in the dictionary, the distribution and the contents of the lines in a table. If after this the table contains a large number of lines and the statistics are based on a small subset of these, it is possible that the execution plan constructed by the optimizer will not be optimal.
The optimization based on the cost is declared by the optimizer_mode parameter that can take 3 values
Static optimization is declared by the value RULE. In this case, the optimizer uses the request system to carryout the best execution plan. The syntax optimizer is no longer supported in Oracle 10.
It is important that the statistics are generated for all the objects in a structure. In fact, the presence of partial statistics for a select instruction can lead to the server process evaluating statistics for objects that it does not have available. This type of statistics sampling carried out during the execution are not saved in a permanent fashion in the data dictionary. It is therefore repeated on each execution for the same request.
All the information on the tables, index and statistics are read directly in the database from the Oracle tables and views :
The dates for the statistics corresponding to the column LAST_ANALYZED for the Oracle USER_TABLES and USER_INDEXES views.
The statistics are generated with the help of the Oracle DBMS_STATS package.
The procedures used are :