Databases and Users | SQL Fundamentals | VantageCloud Lake - Databases and Users - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

A database is a container with an allotment of space in which users can create and maintain database objects, including tables, views, triggers, indexes, stored procedures, user-defined functions, and macros.

A user is similar to a database, except that a user has a password and can log on to the system, whereas a database cannot.

The primary database user is DBC, which owns all system disk space and contains the Data Dictionary tables and other system objects and information.

Defining Databases and Users

Before you can create a database or user, you must have sufficient privileges granted to you.

To create a database, use the CREATE DATABASE statement. You can specify the name of the database, the amount of storage to allocate, and other attributes.

To create a user, use the CREATE USER statement. The statement authorizes a new user identification (user name) for the database and specifies a password for user authentication. Because the system creates a database for each user, the CREATE USER statement is similar to the CREATE DATABASE statement.

Difference between Users and Databases

Formally speaking, the difference between a user and a database is that a user has a password and a database does not. Users can also have default attributes such as time zone, date form, character set, role, and profile, while databases cannot.

You may infer from this that databases are passive objects, while users are active objects. That is only true in the sense that databases cannot run SQL statements. However, a query, macro, or stored procedure can run using the privileges of the database.