READ Locks and Canceled Rollback Operations - Teradata Database - Teradata Vantage NewSQL Engine

SQL Data Manipulation Language

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
fbo1512081269404.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

When you use the RcvManager utility to cancel a transaction rollback, the system marks the base table on which the rollback was canceled as nonvalid. As a result, the table cannot be updated. With some restrictions, you can inspect the rows of the nonvalid base table if you specify a LOCKING FOR READ OVERRIDE modifier.

The following rules document the restrictions on the use of a LOCKING FOR READ OVERRIDE modifier:
  • You can only read from a single base table using this modifier. Attempts to perform multitable operations return an error.
  • You can specify LOCKING FOR READ OVERRIDE for any single base table, whether a rollback has been canceled on that table or not.
  • The Optimizer only uses indexes to read base valid base tables. If you use LOCKING FOR READ OVERRIDE to access a nonvalid table, then the system always uses a full-table scan.