Create Profiles and Roles in Teradata VantageCloud Lake - Creating Profiles and Roles with SQL - Teradata VantageCloud Lake

Lake - Configure and Manage Your Environment and Organization

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Publication Date
February 2025
Publication ID
B700-4600-007K
ft:locale
en-US
ft:lastEdition
2025-10-24
dita:mapPath
erj1683672627920.ditamap
dita:ditavalPath
pny1626732985837.ditaval
ft:sourceId
dita
dita:id
erj1683672627920
Create profiles and roles for VantageCloud Lake:
  1. Determine what to provision for profiles, roles and users.

    See User Privileges in the VantageCloud Lake documentation for commonly-assigned privileges for users.

  2. Log on as SYSDBA to VantageCloud Lake.
  3. Go to the editor .
  4. Connect as the database administrator, SYSDBA.
  5. Create a profile. Best practice is to start the profile name with P_ to make it easily identifiable as a profile.
    CREATE PROFILE P_profile_name  AS profile ;
    The following is an example with profile attributes shown in bold:
    CREATE PROFILE "P_Profile" AS
    COMPUTE GROUP = compute_group
    SPOOL=spool_space,
    TEMPORARY=NULL,
    ACCOUNT=('account__strA',' account_strB'),
    DEFAULT DATABASE="database_name",
    PASSWORD =
    (EXPIRE=90,MINCHAR=NULL,MAXCHAR=NULL,MAXLOGONATTEMPTS=NULL,
    LOCKEDUSEREXPIRE=NULL,REUSE=NULL,DIGITS=NULL,
    RESTRICTWORDS=NULL,SPECCHAR=NULL);

    See CREATE PROFILE in the VantageCloud Lake documentation for additional information.

  6. Create a role as follows:
    1. Create the role. Best practice is to start the role name with R_ to make it easily identifiable as a role.
      CREATE ROLE R_role_name;
      
    2. Assign privileges to the role.
      GRANT privilege_list
      ON database_object_name
      TO R_role_name;
    3. Include privileges on Sys_Calendar to the role.
       GRANT SELECT, EXECUTE ON Sys_Calendar TO R_role_name;

    See CREATE ROLE in the VantageCloud Lake documentation for additional information.