Required Privileges to Create & Use DATASET Schemas | VantageCloud Lake - Privileges Required for Creating and Using Schemas - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The DATASET data type introduces DDL statements, and added three privileges to the current data control language (DCL).

CREATE DATASET SCHEMA Privilege

The CREATE DATASET SCHEMA privilege allows users to create a schema in SYSUDTLIB. This privilege is granted at the database level only. The privilege is automatically given to the database DBC with a grant option, and must be explicitly granted with or without grant options by DBC to any other users or databases created, or without grant options to any role created.

The following list provides a summary of this privilege:
  • Privilege: CREATE DATASET SCHEMA
  • Abbreviation in System Views: C1
  • Automatically Granted
    • Creators: No
    • Created User or Database: No
  • Explicitly Granted
    • Creators: Yes
    • Created User or Database: Yes
    • Privilege Category: Dataset Schema

DROP DATASET SCHEMA Privilege

The DROP DATASET SCHEMA privilege allows users to drop a schema from SYSUDTLIB, and is granted at the database or individual schema level. This privilege is automatically given to the database DBC with a grant option, and must be explicitly granted with or without grant options by DBC to any users or databases created or without grant options to any role created. The schema creator is automatically granted this privilege with grant option on the created schema. This privilege does not guarantee the ability to drop a schema.

The following list provides a summary of this privilege:
  • Privilege: DROP DATASET SCHEMA
  • Abbreviation in System Views: D1
  • Automatically Granted
    • Creators: Yes
    • Created User or Database: No
  • Explicitly Granted
    • Creators: Yes
    • Created User or Database: Yes
    • Privilege Category: Dataset Schema

WITH DATASET SCHEMA Privilege

The WITH DATASET SCHEMA privilege allows users to associate a created schema with a table column, and can be granted at the database- or individual schema-level. This privilege is automatically given to the database DBC with a grant option, and must be explicitly granted with or without grant options by DBC to any users or databases created or without grant options to any role created. The schema creator is automatically granted this privilege with grant option on the created schema.

The following list provides a summary of this privilege:
  • Privilege: WITH DATASET SCHEMA
  • Abbreviation in System Views: W1
  • Automatically Granted
    • Creators: Yes
    • Created User or Database: No
  • Explicitly Granted
    • Creators: Yes
    • Created User or Database: Yes
    • Privilege Category: Dataset Schema

For more information, see DATASET SCHEMA.