This tutorial explains the following topics with respect to connecting to Teradata:
1. Connectivity via DSN
2. Connectivity via JDBC
3. Connectivity via Teradata Parallel Transporter (TPT)
4. Password Authentication
5. LDAP Authentication
6. Kerberos Authentication
Strategy Secure Enterprise uses the Teradata ODBC driver for analytical requests and for Strategy Metadata operations.
This section describes driver configuration, and the settings that are known to enhance performance of Strategy when connecting to Teradata.
Configuration: consists of three steps: create database instance, create a database connection, and configure and store credentials.



Optimization: To fully leverage Teradata for analytical SQL requests, the Teradata DSN configuration should be modified from its default values as follows:

Additionally, when using Teradata as Strategy Metadata, the Teradata ODBC driver options should be set as follows

This section describes driver configuration, and the parameters that are known to optimize performance of Strategy when connecting to Teradata.

Optimization: To better support UTF-16 characters used in namespace, table name, column name, etc, we recommend adding Unicode encoding parameters to JDBC connection string as
JDBC;DRIVER={com.teradata.jdbc.TeraDriver};URL={jdbc:teradata://@server/CHARSET=UTF16,DATABASE=@databasename };
For a more in-depth coverage of how to connect to the Teradata Parallel Transporter API in Strategy, see the following link:
Teradata developed its own API, the Teradata Parallel Transporter API (TPT API) with multiple protocols such as “FastLoad”, “Multi-Load”, “FastExport”. These protocols enabling users to load and unload data quickly and efficiently. Strategy supports the “FastExport” protocol from TPT API, allowing users to export data out of Teradata into Strategy Cubes. The “FastExport” protocol is capable of exporting data out of Teradata utilizing parallel sessions and therefore has a higher throughput rate than a single session traditional ODBC. Users can download the driver corresponding to TPT API and install it to connect through it and need to follow the below steps to setup the connectivity.
Note that having a functional ODBC or JDBC driver is a prerequisite for using TPT API, as the driver is used to access catalogue, tables, and to preview data during the import process. The API is only used to publish a cube.
Prerequisite
The configuration is different in Strategy Developer and in Strategy Web as described below:
Strategy Developer:
1. Set Data Retrieval Mode to the setting Allow Native API at the report level:

2. Set Data Retrieval Parameters to the following setting at the report level
TD_TDP_ID=<MICRO>;TD_MAX_SESSIONS=2;TD_MIN_SESSIONS=2;TD_MAX_INSTANCES=2;
Note: TD_TDP_ID must be supplied by your Teradata database administrator.
An example is shown in the following figure.

Note: Even though the VLDB settings Data Retrieval Mode and Data Retrieval Properties are available at both the report level and database instance level, it is recommended that a user sets VLDB settings at the report level for specific cube reports on a case-by-case bases.
3. After these parameters are set, retrieve the data via TPT API. When running the report, note the message “TPT API IS TURNED ON AND TD_MAX_INSTANCES=*” on the top of all the select passes that have been retrieved by TPTAPI.
The following figure shows that the particular SQL pass is being fetched by the PTP API, instead of ODBC.

Strategy Web:
1. Create a database instance as shown below and note that apart from the usual ‘Server Name’, ’Database Name’, ’User’, ’Password’, ’Data Source Name’ for ODBC connections, the following changes must be made:

2. After creating the database instance, click the particular database instance, enter the relevant namespace and select tables, and create a query. The calls for retrieving the tables are made through ODBC.

3. After clicking Finish, the “publish dialog” opens and the data is retrieved via TPT API.

Password authentication is the default authentication mechanism for Strategy users when connecting to Teradata. The screenshots below show how to set it in the ODBC driver, and for DND and DNS-less connection.



When LDAP authentication is selected, authentication parameters are stored in metadata and a message is sent to driver to use LDAP to verify them.
If the Teradata Server is configured to use the external LDAP directory server for authentication, Strategy users can take advantage of the Teradata-LDAP integration. The users then authenticate against Strategy using LDAP authentication, and the same credentials are then passed through for authentication when connecting to the database during report execution.
LDAP support must be configured on the Teradata server, ODBC driver, and Intelligence Server as follows:



Strategy also supports passing separate credentials to the warehouse for particular LDAP users:


The following Kerberos flavor is supported:
The following Kerberos flavor is not supported:
Linux: Starting in Secure Enterprise 10.2, Strategy updated the code to support Kerberos Authentication on Linux.
Strategy supports Single Sign-On (SSO) access to Teradata (using Kerberos) when the Strategy Intelligence Server resides on a Windows operating system or Linux operating system. Following steps outline the SSO Connectivity:


