Stop Map Reassignments Abruptly| Teradata Vantage - Stopping Map Reassignments Abruptly - Advanced SQL Engine - Teradata Database

Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
upb1600054424724.ditamap
dita:ditavalPath
upb1600054424724.ditaval
dita:id
B035-1093
lifecycle
previous
Product Category
Teradata Vantageā„¢
To stop a map reassignment job immediately, call the procedure StopMovesTablesSP and specify Y for the StopQueuedActions parameter. For example:
CALL TDMaps.StopMoveTablesSP('Y',
		 :NumActionsStopped, :NumQueuedActionsStopped);
The ActionHistoryTbl records any already queued actions that are stopped .
If a table group is interrupted during the map reassignment process, related tables may be assigned to different maps and may reside on different AMPs for a long time, slowing down request processing. For this reason, Teradata recommends stopping map reassignments gracefully, allowing groups of related tables to stay together.

Do not stop the map reassignment job by issuing ABORT SESSION LOGOFF. That causes the manager session to hang. Calling StopMoveTablesSP releases the manager session. After running StopMoverSP, you need to manually abort the worker sessions.

For more information on StopMoveTablesSP, including the syntax, see Teradata Vantageā„¢ - SQL Operators and User-Defined Functions, B035-1210.