Drop a Database or User | VantageCloud Lake - Dropping a Database or User - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Dropping a database or user is a two-step process:

  1. Delete all database objects from the specified database or user. For example:
    DELETE DATABASE used_cars ALL;

    or

    DELETE USER marco ALL;
  2. Drop the empty database or user. For example:
    DROP DATABASE used_cars;

    or

    DROP USER marco;

If a journal table exists, first be sure that no data table references it. Then, remove it. For example:

MODIFY DATABASE used_cars AS DROP DEFAULT JOURNAL TABLE;

The database or user permanent space that the drop makes available is added to the permanent space of the immediate owner database or user.

All physical database maintenance is performed automatically. You need not restructure or reorganize a database to reuse space. Not all physical database maintenance activities required by other database systems (such as eliminating pointer chains and reorganizations) apply to Vantage.