Example: Using AnalyzeSP - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

To analyze tables in the Personnel object list for queries logged over the last 7 days and recommend actions to move those queries into MyNewMap:

CALL TDMaps.AnalyzeSP(
   'MyNewMapList', 'Personnel',NULL,
	CAST(CURRENT_TIMESTAMP – INTERVAL '7' day AS TIMESTAMP),
   CURRENT_TIMESTAMP,
	'DBC', 'MyNewMapActions', :NumAlters, :NumExcludes, :NumLogEntries);

Output:

Procedure has been executed.
*** Total elapsed time was 19 minutes and 47 seconds.

NumAlters		   NumExcludes		 NumLogEntries
----------------	----------------	-------------
              85	               0		98020