RESTART INDEX ANALYSIS | SQL Statements | VantageCloud Lake - RESTART INDEX ANALYSIS - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
This statement is only supported on the Block File System on the primary cluster. It is not available for the Object File System.

Restarts a previously halted index analysis started by an INITIATE INDEX ANALYSIS or RESTART INDEX ANALYSIS request that specified a checkpoint.

INITIATE INDEX ANALYSIS and INSERT EXPLAIN are supported only on the Block File System on the primary cluster, not the Object File System.

ANSI Compliance

RESTART INDEX ANALYSIS is a Teradata extension to the ANSI SQL:2011 standard.

Required Privileges

The privileges required to submit a RESTART INDEX ANALYSIS request are the following:

Required Privileges Tables in QCD_name on Which Privileges Are Required
INSERT
  • IndexColumns
  • IndexRecommendations
  • INSERT
  • DELETE
AnalysisLog

The user who performs a RESTART INDEX ANALYSIS request must be the same user who performed the checkpointed INITIATE INDEX ANALYSIS request.

Rules for Performing RESTART INDEX ANALYSIS

The rules for using RESTART INDEX ANALYSIS and INITIATE INDEX ANALYSIS are the same. For more information, see Rules for Performing INITIATE INDEX ANALYSIS.

RESTART INDEX ANALYSIS Requires a Checkpoint

If you do not specify a CHECKPOINT clause in your INITIATE INDEX ANALYSIS request, then you cannot restart a previously halted index analysis.

If you are not satisfied with the outcome of a previously timed out INITIATE INDEX ANALYSIS request and want to extend the analysis to try to improve results, you can restart the analysis from the stopping point by specifying a CHECKPOINT, rather than redoing the entire INITIATE INDEX ANALYSIS request from the beginning.

Actions Performed by RESTART INDEX ANALYSIS

RESTART INDEX ANALYSIS functions like INITIATE INDEX ANALYSIS, except that RESTART INDEX ANALYSIS begins its analysis with the first SQL request in the workload that was not checkpoint logged in the AnalysisLog table.

If the restart aborts for any reason before completion, the next RESTART INDEX ANALYSIS request begins its analysis with the first SQL request in the workload that was not checkpointed in the AnalysisLog table.

When the restart completes successfully, index recommendations are written to the IndexRecommendations table within the specified QCD.

RESTART INDEX ANALYSIS Not Supported from Macros

You cannot specify a RESTART INDEX ANALYSIS request from a macro. If you run a macro that contains a RESTART INDEX ANALYSIS request, the database aborts the request and returns an error.