Professional Documents
Culture Documents
Teradata - User Management
Teradata - User Management
Teradata - User Management
Management
Users
A user is created using CREATE USER
command. In Teradata, a user is also similar
to a database. They both can be assigned
space and contain database objects except
that the user is assigned a password.
Syntax
Following is the syntax for CREATE USER.
Example
Following is an example to create the user
TD01.
Accounts
While creating a new user, the user may be
assigned to an account. ACCOUNT option in
CREATE USER is used to assign the account.
A user may be assigned to multiple
accounts.
Syntax
Following is the syntax for CREATE USER
with account option.
Example
The following example creates the user
TD02 and assigns the account as IT and
Admin.
Grant Privileges
GRANT command is used to assign one or
more privileges on the database objects to
the user or database.
Syntax
Following is the syntax of the GRANT
command.
Example
Following is an example of GRANT
statement.
Revoke Privileges
REVOKE command removes the privileges
from the users or databases. The REVOKE
command can only remove explicit
privileges.
Syntax
Following is the basic syntax for REVOKE
command.
Example
Following is an example of REVOKE
command.
REVOKE INSERT,SELECT ON Employee FROM
Print Page