User_Database - Analytics Database - Teradata Vantage

SQL Request and Transaction Processing

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
zfm1628111633230.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
evd1472255317510
lifecycle
latest
Product Category
Teradata Vantage™

Function of User_Database

Describes User and Database identifiers to capture the identity of the user who submitted the query, the names of databases used in the query plan, and so on.

User_Database Table Definition

The following CREATE TABLE request defines the User_Database table:

   CREATE TABLE User_Database(
     UDB_Key     INTEGER NOT NULL,
     UDB_ID      INTEGER NOT NULL,
     MachineName VARCHAR(30) CHARACTER SET UNICODE
                 NOT CASESPECIFIC NOT NULL,
     UDB_Name    VARCHAR128 CHARACTER SET UNICODE
                 NOT CASESPECIFIC NOT NULL)
   UNIQUE PRIMARY INDEX PK_UDB_KEY ( UDB_Key );

Attribute Definitions for User_Database

The following table defines the User_Database table attributes:

Attribute Definition
UDB_Key
  • Unique identifier for the user or database.
  • UPI for the table.
UDB_ID Unique identifier for the user or database on the system on which the captured query was performed.
MachineName Name of the production system on which the database identified by UDB_ID exists.
UDB_Name Name of the user or database identified by UDB_ID.