There's more...

If the release lock statement still gives an error and does not release the lock on the table, you need to use SELECT with the ACCESS lock to copy the content of the locked table to a new one and drop the locked tables.

If you start receiving the error 7446 Mload table %ID cannot be released because NUSI existsyou need to drop all the NUSI on the table and use ALTER Table to non-fallback to accomplish the task.

Get Teradata Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.