LOGMECH and LOGDATA - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
15.00
Language
English (United States)
Last Update
2018-09-25
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

LOGMECH and LOGDATA

Purpose  

The LOGMECH and LOGDATA commands enable specification of the security mechanism, and other parameters (beyond userid and password) needed to authenticate LOGON command users.

LOGMECH

Valid values for LOGMECH are a single mechanism name up to eight characters in length and not case-sensitive. The initial value for LOGMECH is eight spaces, which specifies the default mechanism. When the LOGMECH command is used without specifying a value, BTEQ sets LOGMECH to its initial default value.

Syntax

where:

 

Syntax Element

Specification

logmech_name

Defines the logon mechanism. For a discussion of supported logon mechanisms, see Security Administration (B035-1100).

The name is limited to eight characters; it is not case sensitive.

LOGDATA

For LOGDATA, valid values are a single mechanism data value up to 32000 bytes in length. When the LOGDATA command is used without specifying a value, BTEQ sets LOGDATA to its initial default value.

Syntax

where

 

Syntax Element

Specification

logdata_string

indicates the parameters for the logon mechanism (specified using the LOGMECH command). For information about the logon parameters for supported mechanisms, see Security Administration (B035-1100).

Usage Notes  

Because the LOGDATA argument is considered sensitive information, BTEQ (in interactive mode) prompts for a value, which is specified in protected mode (keyboard entry is not displayed). The value cannot be supplied as an argument to the LOGDATA command.

The SHOW CONTROLS command does not display the LOGDATA setting.

For network-attached systems, you can use Teradata Wallet in order to keep your Teradata Database passwords private and not be exposed in scripts. For more information about using Teradata Wallet for the username and password entries in the LOGDATA command, see Security Administration (B035-1100).

For more information about using security mechanisms, see Security Administration (B035-1100).

Examples  

When using the LOGDATA and LOGMECH commands, they must precede the LOGON command. The LOGDATA and LOGMECH commands can occur in either order. The example below is for non-interactive mode use.

The following example demonstrates using the LOGDATA, LOGMECH, and LOGON commands in combination to specify the Windows logon authentication method and associated parameters:

.logmech NTLM;
.logdata joe@domain1@@mypassword;
.logon mydbs;