Analyze tables


Job details

Name: Analyze tables
Platform: Oracle
Category: Maintenance
Premium package: Maintenance package
Description: Analyse tables automatically.
Long description: Analyses tables to improve performance
Version: 1.8
Default schedule: 15 0 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & eleven_and_above=‘1′]

Parameters

Name Default value Description
history threshold 30 Defines how many days we keep data for in the dbw_analyze_table_hist table.
calculate time 2 Defines how long time we can use to analyze statistics in hours. (approximately, since it will not start a new analysis after the time limit, but will complete any analysis started before this time)

Job Summary

SELECT owner, table_name, analyze_time FROM dbw_analyze_table_hist ORDER BY histr_date DESC;

Table and Procedure Setup

Table/Procedure Name Description
dbw_analyze_table_hist Stores historical data of when and which tables are analyzed, including the time taken for analysis.
dbw_not_analyze_tables Logs tables that failed during the analysis process along with error details.
dbw_analyze_table_proc Procedure responsible for the analysis of tables. It filters which tables to analyze based on specific criteria, executes the analysis, and handles potential errors by logging them.

Detailed Procedure Execution

Error Handling and Dependencies

Performance Metrics Reporting

Security and Permissions