Locks and Concurrency - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

When you do not specify the SPOOL, TEMPORARY, or PERM options, MODIFY DATABASE places an ACCESS lock on the database being altered to run concurrently with all DML requests.

Modifying the SPOOL, TEMPORARY, and PERM options require an EXCLUSIVE lock.

This statement also places a rowhash-level WRITE lock on the database for DBC.DBase. The SPOOL, TEMPORARY, and PERM options then place a second lock on the immediate parent for DBC.DBase. For PERM, the second lock is a rowhash-level WRITE lock. For SPOOL or TEMPORARY, the second lock is a rowhash READ lock.

The SPOOL, TEMPORARY, and PERM options also place a rowhash-level WRITE lock on DBC.DataBaseSpace. The PERM option then places a second rowhash-level WRITE lock on the immediate parent for DBC.DataBaseSpace.