Logically Deleted Rows | Teradata Vantage - 17.00 - 17.05 - Logically Deleted Rows - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine Node Software Migration Guide

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Release Date
June 2020
Content Type
Administration
Configuration
Installation
Publication ID
B035-5942-170K
Language
English (United States)

Rows can be logically deleted for load-isolated (LDI) tables and during certain join index operations. These rows are marked for deletion, but not immediately physically deleted from the database. After the data is restored to the destination system, tables with these rows cannot be revalidated until the rows have been physically deleted.

The post_data_restore script returns a Failure 9899 error when it encounters logically deleted rows. Use the information in the script output to note the tables containing logically deleted rows, and issue an SQL ALTER TABLE … RELEASE ROWS statement for each affected table. See Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144.