16.10 - Creating User DBADM - Teradata Database

Teradata Database Administration

Product
Teradata Database
Release Number
16.10
Published
April 2018
Language
English (United States)
Last Update
2018-04-26
dita:mapPath
qjg1509413559832.ditamap
dita:ditavalPath
changebar_rev_16_10_exclude_audience_ie.ditaval
dita:id
ujp1472240543947
  1. From an administrative client, log on as user DBC.
  2. Create the database administrator as follows:
Field Description
User Name Required. The name of the database administrator user.

All administrative procedures in this publication use the name DBADM for the principal administrator.

Owner The owner of user DBADM, which is DBC.
Password Required. The temporary password for DBADM.

Recommendation: Any simple password will work that follows the default system password controls. Each user is prompted to change the temporary password to a permanent, private password at first logon.

Be sure to review the default password control values to determine whether they conform to your site security requirements.

For information on password control options, see Security Administration.

Permanent Space Required. The space in bytes that contains all objects that user DBADM creates or owns.

Perm space can also be specified with a constant expression resulting in a numeric value in bytes. This allows you to specify perm space per AMP, which is useful when porting applications from a smaller test system to a production system. See the example below.

Because user DBADM will create and own nearly all Teradata databases and tables, assign it the majority of space on the system.

Recommendation: 60-65% of available system (DBC) space.

Spool Space Optional. The spool space specification is only a limit to the amount of space available for intermediate query results or formatted answer sets to queries and volatile tables. The system borrows spool space for a user from unused permanent space anywhere in the system.

Spool space can also be specified with a constant expression resulting in a numeric value in bytes. This allows you to specify spool space per AMP, which is useful when porting applications from a smaller test system to a production system. See the example below.

Recommendation:Spool space specification is not normally needed. Spool is already allocated in the DBADM profile.

Default Database Optional. The user or database containing the space in which the Teradata Database stores or searches for new or target objects unless a different database is specified in the transaction SQL.

Recommendation: Specify DBADM.

Profile Required. The name of the profile in which the user has membership. A user can be a member of only one profile.

Recommendation: Enter DBADM, the profile created for user DBADMIN in Creating the DBADM Profile.

FALLBACK Optional. Specification of FALLBACK automatically creates a duplicate of each table stored in the user space, in addition to the duplicates already created by disk mirroring, to which the system can revert in the event of a failure.

Recommendation: Uncheck Fallback. FALLBACK is only recommended for individual mission-critical tables or tables so large that their size prevents timely backup to tape or external disk.

For example:

CREATE USER "DBADM" FROM "DBC"
AS PERM = 2e5 * (hashamp() + 1)
PASSWORD =  "temp" 
SPOOL =  spool_space 
PROFILE = DBADM
STARTUP = ''
NO FALLBACK
NO BEFORE JOURNAL
NO AFTER JOURNAL;

The hashamp() function is a database built-in function that returns the highest AMP number in the system configuration. Because AMP numbers start from zero, (hashamp() + 1) returns the total number of AMPs in the system. The example expression: 2e5 * (hashamp() + 1) means allocate 200,000 bytes on each AMP for perm or spool space for the user or database.

After you create the administrative user DBADM, do not log on as user DBC to perform subsequent administrative activities except during activities that only user DBC can perform.

Keep the client application open for use in the Granting Database Privileges to User DBADM.

Reference Information

Reference topics are arranged according to the first step in which the topic appears.

Step Topic Resource for Further Information
2 User types and characteristics Chapter 5: “Creating Users and Granting Privileges,” in Security Administration
Syntax and options for the CREATE USER statement SQL Data Definition Language Syntax and Examples
Guidelines for managing of space Managing Space: Operational DBAs
The default password control values and how to change them Chapter 6: “Managing Database Passwords,” in Security Administration