MODIFY DATABASE SQL Statement | Teradata Vantage - MODIFY DATABASE - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Changes the parameters for the specified database.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

Other SQL dialects support similar non-ANSI standard statements with names such as ALTER DATABASE.

Required Privileges

You must have the DROP DATABASE privilege on the referenced database.

To modify users, see MODIFY USER.

When you perform a MODIFY DATABASE statement, the system places an exclusive lock on the database that is being modified.

If necessary, the system changes the defined PERM, SPOOL, or TEMPORARY space to the next higher value that is a multiple of the number of AMPs on the system.

You can change one or more options in the same MODIFY statement. A changed option applies to all subsequent operations that occur for the database.

If an existing option is not changed by a MODIFY statement, that option retains its previously defined value.

Privileges Granted Automatically

When you submit a successful MODIFY DATABASE … DEFAULT JOURNAL TABLE statement, the following privileges are granted automatically to the database on the journal table:
  • DROP TABLE
  • INSERT