Using the Teradata JDBC Driver

This chapter describes using the Teradata JDBC Driver software in Java programs, and guides you through the process of getting the Teradata JDBC Driver running on site:

Importing the SQL Package and Loading the Teradata JDBC Driver

This section lists the necessary steps for a standalone Java application to use the Teradata JDBC Driver.

This information does not apply to a J2EE application deployed to an application server environment such as WebSphere or WebLogic. Application servers provide their own mechanisms for defining the classpath, and application servers are responsible for loading the JDBC driver classes.

  1. The Teradata JDBC Driver jar file(s) must be downloaded to, or copied to, the development system.

    Beginning with Teradata JDBC Driver 16.20.00.11, one jar file is required:
    With older versions of the Teradata JDBC Driver, two jar files are required:
  2. Beginning with Teradata JDBC Driver 16.20.00.11, one jar file must be listed on the CLASSPATH:
    With older versions of the Teradata JDBC Driver, two jar files must be listed on the CLASSPATH:
  3. Place the following line near the top of the Java program:

    import java.sql.*;

  4. Use the following statement to load and register the Teradata JDBC Driver:

    Class.forName("com.teradata.jdbc.TeraDriver");

Connection Parameters

To access a database from a Java program, use the java.sql.DriverManager.getConnection method to obtain a new java.sql.Connection object from the DriverManager.

The java.sql.DriverManager.getConnection method takes a URL string as an argument. The URL string identifies a database, and the DriverManager uses the URL prefix jdbc:teradata:// to select the Teradata JDBC Driver for the connection.

Description

Example Teradata JDBC Driver Connection URL

No connection parameters

jdbc:teradata://DatabaseServerName

 

DatabaseServerName is the hostname of the database.

One connection parameter

jdbc:teradata://DatabaseServerName/ParameterName=Value

 

Connection parameters are optional. The first ParameterName is separated from the DatabaseServerName by a forward slash character.

Two or more connection parameters

jdbc:teradata://DatabaseServerName/ParameterName=Value,ParameterName=Value

 

When two or more connection parameters are specified, the parameters must be separated by commas. Enclose the value in single-quotes if the value contains a comma.

 

ParameterName is a connection parameter, and Value is a value for the parameter, as described in the next table.

The following table lists the Teradata JDBC Driver connection URL parameters and values. Beginning with Teradata JDBC Driver 16.00.00.28, the Teradata JDBC Driver validates URL connection parameters and throws SQLException for an invalid parameter name and/or invalid value.

Parameter

Description

ACCOUNT

Specifies an account string to override the default account string defined for the database user. Accounts are used by the database for workload management and resource usage monitoring.

Beginning with Teradata Database 14.10, the maximum length of an account string is 128 characters. The maximum length of an account string is 30 characters for Teradata Database 14.0 and earlier releases.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 15.10.00.08.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

BROWSER

Specifies a command to override the default command to open the browser for Browser Authentication, which is chosen with the LOGMECH=BROWSER connection parameter.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

Beginning with Teradata JDBC Driver 20.00.00.59, the specified command must match the value of the Java system property teradata.browser for improved security. The driver throws SQLException in case of a mismatch.

Example Java command line: java -Dteradata.browser="chrome PLACEHOLDER" -jar MyApplication.jar

The specified command must include a placeholder token, literally specified as PLACEHOLDER, which the Teradata JDBC Driver will replace with the Identity Provider authorization endpoint URL. The PLACEHOLDER token is case-sensitive and must be specified in uppercase.

  • On Windows, when the BROWSER connection parameter is omitted, the default command is cmd /c start "title" "PLACEHOLDER". Windows command syntax requires the quoted title to precede the quoted URL.
  • On macOS, when the BROWSER connection parameter is omitted, the default command is open PLACEHOLDER. macOS command syntax does not allow the URL to be quoted.

The Java system property teradata.browser is not required when the BROWSER connection parameter is omitted on Windows or macOS.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.10.00.01.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.10.00.01.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.10.00.01.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.10.00.01.

BROWSER_TAB_TIMEOUT

Specifies the number of seconds to wait before closing the browser tab after Browser Authentication is completed. The behavior is under the browser's control, and not all browsers support automatic closing of browser tabs. Typically, the tab used to log on will remain open indefinitely, but the second and subsequent tabs will be automatically closed.

When the BROWSER_TAB_TIMEOUT connection parameter is omitted, the default is 5 seconds. Specify 0 (zero) to close the tab immediately. Specify -1 to turn off automatic closing of browser tabs.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.20.00.09.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.20.00.09.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.20.00.09.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.20.00.09.

BROWSER_TIMEOUT

Specifies the number of seconds that the Teradata JDBC Driver will wait for Browser Authentication to complete. When the BROWSER_TIMEOUT connection parameter is omitted, the default is 180 seconds (3 minutes).

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.10.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.10.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.10.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.10.00.17.

CHARSET

Specifies the session character set for encoding and decoding character data transferred to and from the Teradata Database. The following session character sets are supported:

  • ASCII
  • EBCDIC037_0E
  • EBCDIC273_0E
  • EBCDIC277_0E
  • HANGULEBCDIC933_1II
  • HANGULKSC5601_2R4
  • KANJIEBCDIC5026_0I
  • KANJIEBCDIC5035_0I
  • KANJIEUC_0U
  • KANJISJIS_0S
  • LATIN1_0A
  • LATIN9_0A
  • LATIN1252_0A
  • SCHEBCDIC935_2IJ
  • SCHGB2312_1T0
  • TCHBIG5_1R0
  • TCHEBCDIC937_3IB
  • UTF8
  • UTF16

The default value is ASCII.

Beginning with Teradata Database V2R6.1 and Teradata JDBC Driver 3.3, UTF16 can be used in conjunction with Kerberos or Lightweight Directory Access Protocol (LDAP) authentication.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures, but only ASCII, UTF8, or UTF16 may be specified.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is available for JDBC FastLoad CSV connections, but only ASCII or UTF8 may be specified.

This parameter is available for JDBC Monitor connections, but only certain character sets may be specified, depending on the Monitor version. Refer to JDBC Monitor for details.

This parameter is available for Raw connections.

CHATTER

CHATTER values are ON (the default) or OFF.

  • When set to ON, JDBC FastLoad and JDBC FastLoad CSV transmit data to the database in small messages. This setting is intended for low-latency networks.
  • When set to OFF, JDBC FastLoad and JDBC FastLoad CSV transmit data to the database in large messages. This setting is intended for high-latency networks.

The CHATTER connection parameter is available with Teradata JDBC Driver versions 15.00.00.16 through 15.10.0.24. Beginning with Teradata JDBC Driver 15.10.0.25, the CHATTER connection parameter is no longer available, and is replaced by the MAX_MESSAGE_BODY connection parameter.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad and JDBC FastLoad CSV connections with Teradata JDBC Driver versions 15.00.00.16 through 15.10.0.24.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

CLIENT_CHARSET

Specifies the Java character set for encoding and decoding character data transferred to and from the database. This overrides the Teradata JDBC Driver's normal mapping of Teradata session character sets to Java character sets.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

Note:  Not recommended for normal use. Use at your own risk. Data corruption will occur if the wrong Java character set is specified. Teradata cannot provide any guarantees of data fidelity or quality when this connection parameter is used.

CODE_APPEND_FILE

Specifies how LOGMECH=CODE Device Code Flow will display the verification URL and code. This parameter is optional for LOGMECH=CODE and is ignored for other LOGMECH values.

  • CODE_APPEND_FILE=-out (the default) prints the verification URL and code to Java System.out.
  • CODE_APPEND_FILE=-err prints the verification URL and code to Java System.err.
  • CODE_APPEND_FILE=filename appends the verification URL and code to the specified file if the file already exists or creates a new file if the specified file does not exist.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.17.

COLUMN_NAME

Controls the behavior of the ResultSetMetaData getColumnName and getColumnLabel methods.

  • COLUMN_NAME=OFF (the default) specifies that the ResultSetMetaData.getColumnName method should return the AS-clause name if available, or the column name if available, or the column title, and specifies that the ResultSetMetaData.getColumnLabel method should return the column title.
  • COLUMN_NAME=ON specifies that, when StatementInfo parcel support is available, the ResultSetMetaData.getColumnName method should return the column name if available, and specifies that the ResultSetMetaData.getColumnLabel method should return the AS-clause name if available, or the column name if available, or the column title. This option has no effect when StatementInfo parcel support is unavailable.

The JDBC escape functions {fn teradata_provide(request_scope_column_name_on)} and {fn teradata_provide(request_scope_column_name_off)} take priority over the COLUMN_NAME connection parameter, for that particular SQL request.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

CONNECT_FAILURE_TTL

CONNECT_FAILURE_TTL=time-to-live in seconds

This option enables the Teradata JDBC Driver to remember the time of the last connection failure for each IP address/port combination. Also, the Teradata JDBC Driver skips connection attempts to that IP address/port during subsequent logins for the number of seconds specified by the Connect Failure time-to-live (CONNECT_FAILURE_TTL) value.

Omitting or setting the value to zero disables this feature.

The recommended value for this feature is half the restart time of the corresponding database.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

Note:  This feature applies to TCP socket connection failures and does not apply to hostname look up during COP Discovery. There is no need for such a connection parameter (for example, COP_DISCOVERY_TTL) because this can be done using a JVM setting: the Java security property networkaddress.cache.negative.ttl as defined in the InetAddress Caching section of this document.

CONNECT_FUNCTION

Specifies whether the database should allocate a Logon Sequence Number (LSN) for this session, or associate this session with an existing LSN.

  • CONNECT_FUNCTION=0 (the default) specifies that this session should not have an LSN.
  • CONNECT_FUNCTION=1 specifies that the database should allocate an LSN for this session.
  • CONNECT_FUNCTION=2 specifies that the database should associate this session with an existing LSN. With this option, the existing LSN must be specified with the LOGON_SEQUENCE_NUMBER connection parameter. The database only permits sessions for the same user to share an LSN.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

COP

Specifies whether COP Discovery is performed.

  • COP=ON (the default) specifies that the Teradata JDBC Driver performs COP Discovery.
  • COP=OFF turns off COP Discovery, so that the Teradata JDBC Driver does not search for COP suffixes, and uses only the specified hostname.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

COPLAST

Specifies how COP Discovery determines the last COP hostname.

  • When COPLAST=OFF is specified, or the COPLAST connection parameter is omitted, or COP Discovery is disabled via the COP=OFF connection parameter, then the Teradata JDBC Driver will not perform a DNS lookup for the coplast hostname.
  • When COPLAST=ON is specified, and COP Discovery is enabled, then the Teradata JDBC Driver will first perform a DNS lookup for a coplast hostname to obtain the IP address of the last COP hostname before performing COP Discovery. Subsequently, during COP Discovery, the Teradata JDBC Driver will stop searching for COP hostnames when either an unknown COP hostname is encountered, or a COP hostname is encountered whose IP address matches the IP address of the coplast hostname.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 16.00.00.28.

DATABASE

DATABASE=default database name

Specifies a default database for use after logon, to override the default database defined for the database user.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 15.10.00.08.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

Note:  The DATABASE connection parameter works normally for a user with an expired password when the NEW_PASSWORD connection parameter is also specified. However, the DATABASE connection parameter has no effect for a conditional connection that is established for a user with an expired password when the NEW_PASSWORD connection parameter is not specified. In this situation, the application can submit a MODIFY USER statement to assign a new password to the user. After the new password has been set, the application can submit a DATABASE statement to change the default database for the connection.

DBS_PORT

Connects to the database on the specified TCP/IP port for non-HTTPS connections. The default port is 1025 for non-HTTPS connections to the database.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

DDSTATS

DDSTATS values are ON or OFF:

  • When set to ON, the Teradata JDBC Driver's DatabaseMetaData methods execute an EXPLAIN command with DIAGNOSTIC HELPSTATS ON prior to executing each query against the Data Dictionary. If the database recommends any COLLECT STATS commands, then the recommended commands are logged at the ERROR logging level. The recommended COLLECT STATS commands are NOT executed. The database administrator must execute the COLLECT STATS commands separately. DDSTATS=ON will have a performance impact. DDSTATS=ON is a troubleshooting tool only, and is not recommended for normal production usage.
  • When set to OFF (the default), the Teradata JDBC Driver's DatabaseMetaData methods do not execute EXPLAIN commands.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 13.00.00.25.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 13.00.00.25.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

ELICIT_FILE_PATH

Specifies a directory of files available for uploading to the Teradata Database via the Elicit File Protocol. When creating an External Stored Procedure (XSP), User Defined Function (UDF), or User Defined Method (UDM), or when calling the SQLJ.INSTALL_JAR procedure to install a jar file for a Java Stored Procedure, the file is uploaded to the Teradata Database via the Elicit File Protocol. The driver first looks for the file in the directory specified by the ELICIT_FILE_PATH (if it was specified), then the driver looks for the file as a resource on the Java classpath, and finally the driver looks for the file as a resource from the Java thread context ClassLoader.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.28.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.28.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.28.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.28.

ENCRYPTDATA

ENCRYPTDATA values are ON or OFF:

  • When set to OFF (the default), data exchanged between the Teradata JDBC Driver and the database is not encrypted.
  • When set to ON, data exchanged between the Teradata JDBC Driver and the database is encrypted. This provides greater security, though performance is impacted.

Encryption algorithms are associated with Logon Mechanisms, so the LOGMECH connection parameter governs which encryption algorithm is used when data encryption occurs.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

Note:  Beginning with Teradata Database 14.10 and Teradata JDBC Driver 15.00.00.15, data encryption occurs if required by centralized administration, or if the application specifies the ENCRYPTDATA=ON connection parameter. Encryption required by centralized administration overrides the ENCRYPTDATA=OFF connection parameter.

ERROR_QUERY_COUNT

Specifies the maximum number of times that JDBC FastLoad will attempt to query FastLoad Error Table 1 after a JDBC FastLoad operation.

The default value is 21 attempts when this parameter is omitted.

After a FastLoad operation, the database stores rejected rows in an error table. There may be a delay before the rows are available in the error table, depending on the number of rejected rows and the workload of the database system. JDBC FastLoad uses the information obtained from FastLoad Error Table 1 to compose the BatchUpdateException that indicates to the application which rows were rejected.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad connections beginning with Teradata JDBC Driver 16.00.00.32.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

ERROR_QUERY_INTERVAL

Specifies the number of milliseconds that JDBC FastLoad will wait in between attempts to query FastLoad Error Table 1 after a JDBC FastLoad operation.

The default value is 500 milliseconds when this parameter is omitted.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad connections beginning with Teradata JDBC Driver 16.00.00.32.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

ERROR_TABLE_1_SUFFIX

Specifies the suffix for the name of FastLoad Error Table 1 created by JDBC FastLoad and JDBC FastLoad CSV.

The default suffix is _ERR_1 when this parameter is omitted.

Refer to Considerations When Using JDBC FastLoad and Considerations When Using JDBC FastLoad CSV for more details.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 16.00.00.31.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

ERROR_TABLE_2_SUFFIX

Specifies the suffix for the name of FastLoad Error Table 2 created by JDBC FastLoad and JDBC FastLoad CSV.

The default suffix is _ERR_2 when this parameter is omitted.

Refer to Considerations When Using JDBC FastLoad and Considerations When Using JDBC FastLoad CSV for more details.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 16.00.00.31.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

ERROR_TABLE_DATABASE

Specifies the database name for the FastLoad error tables created by JDBC FastLoad and JDBC FastLoad CSV.

When this parameter is omitted, the default behavior is to create the FastLoad error tables in the same database as the destination table being loaded.

Refer to Considerations When Using JDBC FastLoad and Considerations When Using JDBC FastLoad CSV for more details.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 16.00.00.31.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

FIELD_SEP

Specifies a field separator for use with JDBC FastLoad CSV only. The default separator is ',' (comma). Refer to the section Field Separators Supported by JDBC FastLoad CSV for more details.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport or JDBC FastLoad connections.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 13.00.00.26.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

FINALIZE_AUTO_CLOSE

FINALIZE_AUTO_CLOSE values are OFF (default) or ON:

  • When set to OFF (the default), the Teradata JDBC Driver provides the JDBC 4.0 API Specification behavior such that JDBC objects are not closed automatically during finalize. The application is responsible for closing or freeing JDBC objects.
  • When set to ON, the Teradata JDBC Driver provides the JDBC 3.0 API Specification behavior to close JDBC objects during finalize. This will have a performance impact on garbage collection, and is not recommended.

Java programming best practice is to avoid finalize methods altogether. If a finalize method is used, best practice is to minimize its processing time, and to avoid operations that can take a long time, such as network communications. The JDBC 3.0 API Specification contradicted these best practices by requiring a JDBC Driver to close JDBC objects automatically during garbage collection. The JDBC 4.0 API Specification dropped the requirement for automatic closing of JDBC objects during garbage collection, so the JDBC 4.0 API Specification is in agreement with these best practices.

Garbage collection can be blocked indefinitely when FINALIZE_AUTO_CLOSE is set to ON, and the Teradata JDBC Driver does not receive a response from the database after sending a message to the database to close the response spool.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 14.00.00.08.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 14.00.00.08.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

FLATTEN

FLATTEN values are OFF (default) or ON:

  • When set to OFF (the default), multiple SQLExceptions are chained together and must be accessed with the getNextException method.
  • When set to ON, a single SQLException combines message text from multiple SQLExceptions.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.10.00.05.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 17.10.00.05.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.10.00.05.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.10.00.05.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.10.00.05.

GATEWAY_DEADLINE

Specifies the Gateway deadline in seconds. The default is 50 seconds.

The driver automatically closes and re-establishes the database socket connection if the OpenID Connect (OIDC) flow takes longer than the specified value.

The specified value should be smaller than the Gateway's denial-of-service protection timeout: gtwcontrol setting "connection timeout in seconds" with default 60 seconds.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.49.

GETURL_CREDENTIALS

GETURL_CREDENTIALS values are OFF (default) or ON:

  • When set to OFF (the default), the URL string returned by the DatabaseMetaData getURL method will not contain the USER, PASSWORD, or NEW_PASSWORD connection parameters.
  • When set to ON, the DatabaseMetaData getURL method will return a URL string containing the USER, PASSWORD, and NEW_PASSWORD connection parameters, if available. This option should be used with caution, since exposing the connection's credentials may pose a security risk.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

GOVERN

GOVERN values are ON (default) or OFF:

  • When set to ON (the default), permits Teradata Active System Management (TASM) to delay a JDBC FastLoad/FastExport operation. When TASM is enabled in the database, FastLoad/FastExport operations are controlled by TASM, which may delay or reject a FastLoad/FastExport operation according to the TASM rules. If TASM is disabled, a FastLoad/FastExport operation will not be delayed, although it may still be rejected if it exceeds the maximum permitted number of concurrent FastLoad/FastExport operations. The limit is configured in the database.
  • When set to OFF, prevents TASM from delaying a JDBC FastLoad/FastExport operation. Beginning with Teradata Database 14.10 and Teradata JDBC Driver 14.0.0.17, a JDBC FastLoad/FastExport operation will be rejected with error code 3151 when TASM is enabled for workload definitions or throttle rules. In prior versions of the Teradata JDBC Driver and database, a JDBC FastLoad/FastExport operation will be rejected, but never delayed, if the FastLoad/FastExport operation exceeds a TASM limit or system limit, and a SQLException will be thrown with error code 2633. This behavior will occur when TASM is disabled, and this behavior will occur when TASM is enabled and throttle rules are in use. However, GOVERN OFF may not have the desired effect when TASM is enabled and workload definitions are in use.
  GOVERN OFF GOVERN ON
Throttle rule: JDBC FastLoad/FastExport Provides fail-fast behavior with error 3151 beginning with Teradata Database 14.10 and Teradata JDBC Driver 14.0.0.17. There is no effect with prior versions of the database and Teradata JDBC Driver. Provides delay
Throttle rule: 3rd-party non-Teradata Provides fail-fast behavior with error 2633 No effect
Workload definition: JDBC FastLoad/FastExport Provides fail-fast behavior with error 3151 beginning with Teradata Database 14.10 and Teradata JDBC Driver 14.0.0.17. There is no effect with prior versions of the database and Teradata JDBC Driver. Provides delay
Workload definition: 3rd-party non-Teradata Does not provide fail-fast behavior No effect

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

HTTPS_PORT

Connects to the database on the specified TCP/IP port for HTTPS/TLS connections. The default port is 443 for HTTPS/TLS connections to the database. HTTPS/TLS connections are available beginning with Teradata JDBC Driver 17.10.00.07 and Teradata Advanced SQL Engine 16.20.53.30.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.10.00.07.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.10.00.07.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.10.00.07.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.10.00.07.

HTTPS_PROXY

Uses the specified proxy server for HTTPS/TLS connections to the database and to Identity Provider endpoints.

Specify the proxy server with a URL that must begin with http:// and must include a colon : and port number. Example: HTTPS_PROXY=http://proxy.domain.com:3128

The driver connects to the proxy server using a non-TLS HTTP connection, then uses the HTTP CONNECT method to establish an HTTPS/TLS connection to the destination.

When this parameter is omitted, the default behavior beginning with Teradata JDBC Driver 20.00.00.12 is to use the Java system proxy settings specified with -Dhttps.proxyHost=hostname and -Dhttps.proxyPort=port command-line options.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.12.

HTTPS_PROXY_PASSWORD

Specifies the proxy server password for the proxy server identified by the HTTPS_PROXY parameter. This parameter may only be specified in conjunction with the HTTPS_PROXY parameter.

When this parameter is omitted, no proxy server password is provided to the proxy server identified by the HTTPS_PROXY parameter.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.12.

HTTPS_PROXY_USER

Specifies the proxy server username for the proxy server identified by the HTTPS_PROXY parameter. This parameter may only be specified in conjunction with the HTTPS_PROXY parameter.

When this parameter is omitted, no proxy server username is provided to the proxy server identified by the HTTPS_PROXY parameter.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.12.

HTTPS_RETRY

Specifies the number of HTTPS connection retries for a single-node database. When this parameter is omitted, the default is 2. Specify 0 to turn off HTTPS connection retries.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.45.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.45.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.45.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.45.

JWS_ALGORITHM

Specifies the JSON Web Signature (JWS) algorithm to sign the JWT Bearer Token for client authentication. This parameter is optional for LOGMECH=BEARER and is ignored for other LOGMECH values.

  • JWS_ALGORITHM=RS256 (the default) specifies RSASSA-PKCS1-v1_5 using SHA-256.
  • JWS_ALGORITHM=RS384 specifies RSASSA-PKCS1-v1_5 using SHA-384.
  • JWS_ALGORITHM=RS512 specifies RSASSA-PKCS1-v1_5 using SHA-512.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.17.

JWS_AUDIENCE

Specifies the JWT Bearer Token audience claim for client authentication. This parameter is optional for LOGMECH=BEARER and is ignored for other LOGMECH values.

When this parameter is omitted, the default is the Identity Provider token endpoint URL.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.56.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.56.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.56.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.56.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.56.

JWS_CERT

Specifies the file name of the X.509 certificate PEM file that contains the public key corresponding to the private key from JWS_PRIVATE_KEY. This parameter is optional for LOGMECH=BEARER and is ignored for other LOGMECH values.

  • When this parameter is specified, the "x5t" header thumbprint is added to the JWT Bearer Token for the Identity Provider to select the public key for JWT signature verification. Some Identity Providers, such as Microsoft Entra ID, require this.
  • When this parameter is omitted, the "x5t" header thumbprint is not added to the JWT Bearer Token. Some Identity Providers do not require the "x5t" header thumbprint.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.17.

JWS_PRIVATE_KEY

Specifies the file name of the PEM or JWK file containing the private key to sign the JWT Bearer Token for client authentication. This parameter is required for LOGMECH=BEARER and is ignored for other LOGMECH values.

  • PEM and JWK file formats are supported. The private key filename must end with the .pem or .jwk extension.
  • A PEM file must contain the BEGIN/END PRIVATE KEY header and trailer, or the BEGIN/END ENCRYPTED PRIVATE KEY header and trailer when the private key is encrypted. An encrypted PEM file requires the JWS_PRIVATE_KEY_PASSWORD connection parameter.
  • If a JWK file contains a "kid" (key identifier) parameter, the "kid" header is added to the JWT Bearer Token for the Identity Provider to select the public key for JWT signature verification.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.17.

JWS_PRIVATE_KEY_PASSWORD

Specifies the password to decrypt the encrypted private key file specified by JWS_PRIVATE_KEY. This parameter is optional for LOGMECH=BEARER and is ignored for other LOGMECH values.

  • This parameter must be specified when the JWS_PRIVATE_KEY file is encrypted, and must be omitted when the file is not encrypted.
  • Only PEM files can be encrypted. This parameter must be omitted when JWS_PRIVATE_KEY specifies a JWK file.
  • AES-256-CBC is the only supported private key encryption algorithm. An encrypted private key file can be created with the OpenSSL command openssl pkcs8 -topk8 -v2 aes-256-cbc -in KeyFile -out EncryptedKeyFile.
  • AES-256 must be available from the Java Runtime Environment. Java 8 runtimes earlier than 8u161 require the JCE Unlimited Strength Jurisdiction Policy Files to be installed.
  • This parameter can specify an encrypted password using the Stored Password Protection "ENCRYPTED_PASSWORD(" syntax.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.60.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.60.

This parameter is available for JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.60.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.60.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.60.

KEEPALIVE

Specifies the application layer keep-alive interval in seconds. The default is 30 seconds. Specify 0 to turn off the application layer keep-alive feature.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.63.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.63.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.63.

This parameter is not available for Raw connections.

LITERAL_UNDERSCORE

Many DatabaseMetaData methods have arguments to specify LIKE-predicate patterns to match object names. These method arguments have a name ending in the word Pattern, such as schemaPattern and tableNamePattern.

Within a pattern, the percent-sign character " % " is a wildcard that matches any sequence of zero or more characters, and the underscore character " _ " is a wildcard that matches any single character. To match a literal wildcard character in an object name, the wildcard character must be escaped (preceded) by a backslash character " \ ".

LITERAL_UNDERSCORE=ON will automatically escape all unescaped underscore characters in DatabaseMetaData method pattern arguments. The default is OFF.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 15.10.00.14.

This parameter is available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 15.10.00.14.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

LOB_SUPPORT

LOB_SUPPORT=OFF disables LOB support and related features.

LOB_SUPPORT=ON (the default) enables Large Object (LOB) support and a collection of related features. LOB_SUPPORT must be enabled if the application:

  • Selects or inserts LOB data
  • Uses Scrollable Result Sets
  • Uses Updatable Result Sets

When LOB_SUPPORT is ON (the default), the application is limited to 16 open responses from the database. See Working with LOBs if you receive database Error 3130 "Response limit exceeded".

Turning off LOB_SUPPORT and subsequently attempting to use scrollable result sets or updatable result sets causes the driver to downgrade the result set to forward-only (scrollable result sets) or read-only (updatable result sets). In addition, a SQLWarning is returned to indicate the downgrade.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

LOB_TEMP_TABLE

Specifies the name of a table with the following columns: id integer, bval blob, cval clob

The user or the application must have previously created the table. The Teradata JDBC Driver will not automatically create the table. See Updatable LOBs for more information.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

LOCAL_CATALOG

Controls the catalog name returned by DatabaseMetaData and ResultSetMetaData methods for local objects.

This parameter does not affect the catalog name for Open Table Format (OTF) objects. The DataLake name is always returned as the catalog name for OTF objects.

When LOCAL_CATALOG is OFF (the default):

  • DatabaseMetaData methods getSchemas, getTables, and getColumns return NULL for the catalog name of local objects.
  • ResultSetMetaData.getCatalogName returns an empty string ("") for local objects.

When LOCAL_CATALOG is ON:

  • DatabaseMetaData methods return "TD_LOCAL" for the catalog name of local objects, when Virtual System Dictionary (VSD) is available and connection parameter VSD_LEVEL is 1.
  • ResultSetMetaData.getCatalogName returns "TD_LOCAL" for the catalog name of local objects, when OTF support is available from the database.

This parameter is available for SQL connections beginning with Teradata Database 20.0 and Teradata JDBC Driver 20.00.00.52.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad beginning with Teradata Database 20.0 and Teradata JDBC Driver 20.00.00.52.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

LOG

Specifies the logging level (verbosity) for the connection. Logging is always enabled. The logging levels are listed in order from terse to verbose.

  • LOG=ERROR causes error messages for that connection to be printed to System.out. This is the default value.
  • LOG=TIMING causes error and timing messages for that connection to be printed to System.out.
  • LOG=INFO causes error, timing, and informational messages for that connection to be printed to System.out.
  • LOG=DEBUG causes error, timing, informational, and debug messages for that connection to be printed to System.out. This parameter value is supported for the Default Connection for Java External Stored procedures.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

LOGDATA

Specifies additional data needed by a logon mechanism, such as a secure token, Distinguished Name, or a domain/realm name. LOGDATA values are specific to each logon mechanism. LOGDATA is not used with the TD2 mechanism.

  • For LOGMECH=CRED, LOGDATA contains the Client Credentials Grant request HTTP POST Form Data encoded as Content-Type application/x-www-form-urlencoded. For example:

    LOGDATA=grant_type=client_credentials&scope=openid&client_id=sGDE4Vazjiw&client_secret=aBcDe~fGh ...

  • For LOGMECH=JWT, LOGDATA contains token= followed by the JSON Web Token. For example:

    LOGDATA=token=dHkiOiJKV1QiLCJoI2tGIS42 ...

  • For LOGMECH=KRB5, LOGDATA can contain the Kerberos username, instance, realm, and password. Use is optional, the current user can logon without supplying this information. The sequence @@ always precedes the password. For example:

    LOGDATA=user1@ESDOM.ESDEV.TDAT@@mypassword

  • For LOGMECH=LDAP, LOGDATA can contain spaces, commas, and single quote characters. These special characters must be specified differently depending on the context. For LOGDATA in a DataSource, no quoting or escaping is needed for special characters. For LOGDATA containing special characters in a JDBC connection URL, the LOGDATA value must be enclosed in single quotes, and a doubled single quote must be used to represent each literal single quote character. For example:

    LOGDATA='authcid=username password=userpassword'

    or

    LOGDATA=username@@userpassword

  • For LOGMECH=SECRET, LOGDATA contains the client secret. For example:

    LOGDATA=aBcDe~fGh ...

When the username is specified in the LOGDATA parameter, then the username must not be specified with the DriverManager.getConnection method, and the username must not be specified with the USER connection parameter.

When the password is specified in the LOGDATA parameter, then the password must not be specified with the DriverManager.getConnection method, and the password must not be specified with the PASSWORD connection parameter.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

LOGMECH

Specifies the Logon Mechanism, which determines the connection's authentication and encryption capabilities. Refer to the Teradata Vantage™ Security Administration reference for more information about logon mechanisms.

The database user must have the "logon with null password" permission to log on using LOGMECH=KRB5 Single Sign On (SSO) or any of the OpenID Connect (OIDC) methods: BEARER, BROWSER, CODE, CRED, JWT, ROPC, and SECRET.

  • LOGMECH=BEARER uses OIDC Client Credentials Grant with JWT Bearer Token for client authentication, available beginning with Teradata Advanced SQL Engine 17.10 and Teradata JDBC Driver 20.00.00.17.
  • LOGMECH=BROWSER uses Browser Authentication, available beginning with Teradata Advanced SQL Engine 17.10 and Teradata JDBC Driver 17.10.00.01.
  • LOGMECH=CODE uses OIDC Device Code Flow, also known as OIDC Device Authorization Grant, available beginning with Teradata Advanced SQL Engine 17.10 and Teradata JDBC Driver 20.00.00.17.
  • LOGMECH=CRED uses OIDC Client Credentials Grant with client_secret_post for client authentication, available beginning with Teradata Advanced SQL Engine 17.10 and Teradata JDBC Driver 20.00.00.17.
  • LOGMECH=JWT uses JSON Web Token, available beginning with Teradata Advanced SQL Engine 16.20 and Teradata JDBC Driver 16.20.00.07.
  • LOGMECH=KRB5 uses Kerberos V5
  • LOGMECH=LDAP uses Lightweight Directory Access Protocol
  • LOGMECH=ROPC uses OIDC Resource Owner Password Credentials (ROPC), available beginning with Teradata Advanced SQL Engine 17.10 and Teradata JDBC Driver 20.00.00.17.
  • LOGMECH=SECRET uses OIDC Client Credentials Grant with client_secret_basic for client authentication, available beginning with Teradata Advanced SQL Engine 17.10 and Teradata JDBC Driver 20.00.00.17.
  • LOGMECH=TD2 uses Teradata Method 2
  • LOGMECH=TDNEGO automatically selects an appropriate GSS-API logon authentication method. OIDC methods are not selected. Available beginning with Teradata Database 15.10 and Teradata JDBC Driver 15.10.00.31

When the LOGMECH parameter is omitted, the Teradata JDBC Driver uses the local default mechanism. If no local default mechanism is defined, then the Teradata JDBC Driver uses the default mechanism indicated by the database.

Not all logon mechanisms are available in all environments. If you specify a logon mechanism that is not available in your environment, then the JDBC connection attempt will fail, and a SQLException will be thrown.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

LOGON_SEQUENCE_NUMBER

Specifies an existing Logon Sequence Number (LSN) to associate this session with.

This connection parameter must be used in conjunction with the CONNECT_FUNCTION=2 connection parameter. The database only permits sessions for the same user to share an LSN.

A logon sequence number groups multiple sessions together for workload management. Using a logon sequence number is a three-step process. First, a control session is established with CONNECT_FUNCTION=1, which directs the database to allocate a logon sequence number. Second, the logon sequence number is obtained from the control session by calling the Connection.nativeSQL method with the JDBC escape function {fn teradata_logon_sequence_number}. Third, an associated session is established with CONNECT_FUNCTION=2 and the logon sequence number.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

LOGON_TIMEOUT

Specifies the logon timeout in seconds. The default is 0 (zero), which means no logon timeout.

A nonzero value specified for this parameter takes precedence over the DriverManager.setLoginTimeout method.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.47.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.47.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.47.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.47.

MANAGE_ERROR_TABLES

Controls whether JDBC FastLoad automatically manages the FastLoad error tables when a FastLoad operation completes normally.

  • MANAGE_ERROR_TABLES=ON (the default) specifies that, when a FastLoad operation completes, JDBC FastLoad queries the contents of FastLoad Error Table 1 and FastLoad Error Table 2 (to report bad rows via a chained SQLException) and drops those error tables.
  • MANAGE_ERROR_TABLES=OFF specifies that, when a FastLoad operation completes, JDBC FastLoad does not query the contents of the FastLoad error tables and does not drop them. The error tables are left in the database for the application to inspect and manage.

This setting only affects a FastLoad operation that completes normally. If a FastLoad operation aborts instead -- for example, due to an error, a transaction rollback, or defensive cleanup performed before starting a new FastLoad operation on the same table -- JDBC FastLoad always queries and drops the FastLoad error tables, regardless of this setting.

Refer to Considerations When Using JDBC FastLoad for more details.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport connections.

This parameter is available for JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

MAYBENULL

Controls the behavior of the ResultSetMetaData.isNullable method.

  • MAYBENULL=OFF (the default) specifies that, when StatementInfo parcel support is available, the return value of the ResultSetMetaData.isNullable method is determined from the StatementInfo parcel IsNullable field provided by the database.
  • MAYBENULL=ON specifies that, when StatementInfo parcel support is available, the return value of the ResultSetMetaData.isNullable method is determined from the StatementInfo parcel MayBeNull field provided by the database.

This parameter has no effect when StatementInfo parcel support is unavailable.

The JDBC escape function {fn teradata_provide(request_scope_maybenull_on)} takes priority over the MAYBENULL connection parameter, for that particular SQL request.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 16.00.00.28.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

MAX_MESSAGE_BODY

MAX_MESSAGE_BODY=size in bytes

Specifies the maximum Response Message size in bytes.

This connection parameter is available beginning with Teradata JDBC Driver 15.10.0.25.

  • Beginning with Teradata JDBC Driver 15.10.0.25 and Teradata Database 16.0, the maximum database Response Message size is 16MB. When the MAX_MESSAGE_BODY connection parameter is omitted, the default is a maximum Response Message size of 2MB.
  • Beginning with Teradata JDBC Driver 15.10.0.25, for database releases prior to Teradata Database 16.0, the maximum database Response Message size is 1MB. When the MAX_MESSAGE_BODY connection parameter is omitted, the default is a maximum Response Message size of 1MB.
  • For Teradata JDBC Driver versions prior to Teradata JDBC Driver 15.10.0.25, the maximum database Response Message size is 1MB. The MAX_MESSAGE_BODY connection parameter is not available prior to Teradata JDBC Driver 15.10.0.25.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is not available for Raw connections.

When the MAX_MESSAGE_BODY connection parameter is specified, the maximum Response Message size is the smaller of the MAX_MESSAGE_BODY value and the maximum database Response Message size.

Note:  Performance may be hurt by specifying a smaller MAX_MESSAGE_BODY value than the default maximum Response Message size. This is not recommended.

Performance may be improved by specifying a larger MAX_MESSAGE_BODY value than the default maximum Response Message size, but JVM memory consumption will increase. You must ensure that sufficient JVM memory is available.

NEW_PASSWORD

This connection parameter enables an application to change an expired password automatically.

When a connection is established for a user with an expired password, it is a conditional connection. The only SQL request that can be submitted on a conditional connection is a MODIFY USER statement that assigns a new password to the user.

Each database user is allowed only one conditional connection at a time. To submit a new password for the user, all previously established connections for the user need to be ended, across all Teradata client products and interfaces such as Basic Teradata Query (BTEQ), SQL Assistant (SQLA), the Teradata JDBC Driver, and so forth.

When a conditional connection is established for a user with an expired password and the NEW_PASSWORD parameter:

  • Is specified and set to a non-empty password value–the Teradata JDBC Driver automatically submits a MODIFY USER statement to the database to update the user's password. The Connection.getWarnings method returns null.
  • Is not specified–the Connection.getWarnings method returns an SQLWarning with database error code 3032 to indicate an expired password. The application can submit a MODIFY USER statement to assign a new password to the user.

After the MODIFY USER statement successfully changes the expired password, the connection is no longer conditional—the connection can be used normally.

Note that when the NEW_PASSWORD connection property is specified for an application server DataSource and the Teradata JDBC Driver automatically changes the expired password, the original password defined in the application server DataSource is not updated.

The application can either:

  • Make the original password and the NEW_PASSWORD value the same, which allows a single DataSource to be used, or
  • Define multiple DataSources in a cycle whose passwords chain to each other so that each DataSource's NEW_PASSWORD value matches the next DataSource's password. The application needs to keep track of which DataSource is the current DataSource. This technique is complex, but it offers the security of being able to specify the set of passwords in DataSource definitions separate from the application and to control centrally from the database when the password should change.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

NO_JAVA_PROXY

Controls how the Teradata JDBC Driver uses the Java System properties for proxy settings.

  • NO_JAVA_PROXY default if omitted is to consider the Java System proxy settings for all types of HTTPS and HTTP connections.
  • NO_JAVA_PROXY=db+idp prevents the driver from considering the Java System proxy settings for database and identity provider connections. The Java System proxy settings are still considered for TLS certificate revocation checking.
  • NO_JAVA_PROXY=db prevents the driver from considering the Java System proxy settings for database connections. The Java System proxy settings are still considered for identity provider connections and TLS certificate revocation checking.
  • NO_JAVA_PROXY=idp prevents the driver from considering the Java System proxy settings for identity provider connections. The Java System proxy settings are still considered for database connections and TLS certificate revocation checking.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.54.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.54.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.54.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.54.

OAUTH_LEVEL

Controls Single Sign On (SSO) access to Open Table Format (OTF) catalog and storage instances.

If REDRIVE is 1 or higher and the database supports Control Data, the OAUTH_LEVEL specifies which tokens are transmitted to the database with each request, and the database may use the tokens for SSO access to OTF catalog and storage instances.

If REDRIVE is 0 or the database does not support Control Data, tokens are not transmitted to the database with each request, and tokens will not be available for SSO access to OTF.

  • OAUTH_LEVEL=0 (the default) disables sending tokens to the database.
  • OAUTH_LEVEL=1 sends the token from OIDC authentication to the database for each SQL request.
  • OAUTH_LEVEL=2 sends the OAuth tokens from OAUTH_SCOPES to the database for each SQL request.
  • OAUTH_LEVEL=3 sends the token from OIDC authentication and the OAuth tokens to the database for each SQL request.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.42.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.42.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

OAUTH_SCOPES

Specifies one or more OAuth scopes for SSO access to OTF catalog and storage instances. Multiple scopes are separated by vertical bar characters ( | ).

This parameter may only be used with OIDC logon mechanisms for individual users, not for service accounts. This parameter is optional for the BROWSER, CODE, and ROPC logon mechanisms for individual users. This parameter must be omitted for the BEARER, CRED, and SECRET logon mechanisms for service accounts.

When this parameter is specified, after successful OIDC authentication, the driver obtains an additional access token from the Identity Provider for each specified scope. Each additional access token request uses the same OIDC parameters as the initial OIDC authentication; only the scope is varied.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.42.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata JDBC Driver 20.00.00.42.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

OIDC_CACHE_SIZE

Specifies the maximum size of the OpenID Connect (OIDC) token cache for Browser Authentication and other OIDC methods. When the OIDC_CACHE_SIZE connection parameter is omitted, the default maximum cache size is 100.

Specify maximum cache size 0 (zero) to avoid using the OIDC token cache for this connection.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.38.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.38.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.38.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.38.

OIDC_CLAIM

Specifies the OpenID Connect (OIDC) claim to use for Browser Authentication and other OIDC methods. When the OIDC_CLAIM connection parameter is omitted, the default claim is email.

The claim value is obtained from the OIDC token after a successful request to the Identity Provider token endpoint.

  • If the token contains the specified claim, the claim value is stored in the client attribute ClientUserOperId.
  • If a username was specified as an OIDC login hint, the token must contain the specified claim. The claim value (not the username) is included in the OIDC token cache key for token storage.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.38.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.38.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.38.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.38.

OIDC_CLIENTID

Specifies the OpenID Connect (OIDC) Client ID to use for Browser Authentication and other OIDC methods. When the OIDC_CLIENTID connection parameter is omitted, the default Client ID comes from the database's TdgssUserConfigFile.xml file.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.17.

OIDC_METADATA

Specifies the Identity Provider metadata URL for OpenID Connect (OIDC). When the OIDC_METADATA connection parameter is omitted, the default metadata URL is provided by the database. This connection parameter is a troubleshooting tool only, and is not intended for normal production usage.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.17.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.17.

OIDC_METADATA_CACHE

Specifies the lifetime in seconds for entries in the OpenID Connect (OIDC) Authorization Server metadata cache. When the OIDC_METADATA_CACHE connection parameter is omitted, the default lifetime is 600 seconds (10 minutes).

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.49.

OIDC_PROMPT

Specifies the OpenID Connect (OIDC) prompt value to use for Browser Authentication. This parameter is only intended for use with LOGMECH=BROWSER and is ignored for other LOGMECH values.

This parameter is only effective when User is specified as an OIDC login hint. This parameter is ignored when User is not specified.

Specifying OIDC_PROMPT=login directs the Identity Provider to prompt the user for credentials, but is not supported by all Identity Providers.

When this parameter is specified, the browser tab may not close automatically after Browser Authentication is completed. The behavior is under the browser's control.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.44.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.44.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.44.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.44.

OIDC_REDIRECT_PORT

Specifies the OIDC redirect port number or port number range for Browser Authentication (Authorization Code Flow with PKCE). This parameter is only intended for use with LOGMECH=BROWSER and is ignored for other LOGMECH values.

Omitting this parameter is recommended. The default port number 0 (zero) directs the driver to use an ephemeral port.

IETF RFC 8252 - OAuth 2.0 for Native Apps section 7.3 dictates that an identity provider must allow any port number for the loopback IP redirect URL, to let clients obtain an available ephemeral port from the operating system.

Only specify this parameter if your identity provider deviates from IETF RFC 8252 and requires a specific redirect port number.

  • OIDC_REDIRECT_PORT=port specifies a single port number for the OIDC redirect URL. The driver will throw an exception if the port is unavailable.
  • OIDC_REDIRECT_PORT=port-port specifies a range of port numbers (inclusive) for the OIDC redirect URL beginning with Teradata JDBC Driver 20.00.00.54. A hyphen separates the two port numbers. The second port number must be greater than or equal to the first port number. The driver will try to bind to each port in the range until it finds an available port.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.51.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.51.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.51.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.51.

OIDC_REFRESH

If the OpenID Connect (OIDC) scope includes offline_access, the Identity Provider may provide a refresh token to the driver.

  • OIDC_REFRESH=OFF specifies that the driver should ignore an available refresh token.
  • OIDC_REFRESH=ON (the default) specifies that the driver should use an available refresh token to obtain a new token when the current token expires.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.49.

OIDC_REFRESH_PERCENT

Specifies the OpenID Connect (OIDC) token minimum remaining lifetime percentage for the driver to reuse a token. The driver will replace a token when its remaining lifetime falls below this percentage.

  • The default percentage of 15 specifies that the driver should reuse a token for the first 85% of its lifetime, and replace it when its remaining lifetime falls below 15%.
  • Specify 0 to turn off preemptive replacement and use the entire token lifetime.
  • Specify 100 to never reuse a token and always obtain a new token.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.49.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.49.

OIDC_SCOPE

Specifies the OpenID Connect (OIDC) scope to use for Browser Authentication and other OIDC methods. When the OIDC_SCOPE connection parameter is omitted, the default scope is openid. Beginning with Teradata JDBC Driver 20.00.00.10 and Teradata Database 17.20.03.11, the default scope can be specified in the database's TdgssUserConfigFile.xml file, using the IdPConfig element's Scope attribute.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.10.00.25.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.10.00.25.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.10.00.25.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.10.00.25.

OIDC_SSLMODE

Specifies the mode for HTTPS connections to the Identity Provider.

  • When this parameter is omitted, the default is the value of the SSLMODE connection parameter.
  • OIDC_SSLMODE=ALLOW does not perform certificate verification for HTTPS connections to the Identity Provider.
  • OIDC_SSLMODE=VERIFY-CA verifies that the server certificate is valid and trusted.
  • OIDC_SSLMODE=VERIFY-FULL verifies that the server certificate is valid and trusted, and verifies that the server certificate matches the Identity Provider hostname.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.25.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.25.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.25.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.25.

OIDC_TOKEN

Specifies the kind of OIDC token to use for Browser Authentication and other OIDC methods. When the OIDC_TOKEN connection parameter is omitted, the access_token is used. Specify OIDC_TOKEN=id_token to use the id_token instead of the access_token.

Browser Authentication is supported for Windows and macOS. Browser Authentication is not supported for other operating systems.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 17.10.00.25.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 17.10.00.25.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 17.10.00.25.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 17.10.00.25.

PARTITION

Specifies the database partition for the Connection.

  • PARTITION=DBC/SQL (the default) directs the Teradata JDBC Driver to connect to the standard DBC/SQL partition.
  • PARTITION=MONITOR directs the Teradata JDBC Driver to connect to the Monitor partition.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is not available for JDBC FastExport, JDBC FastLoad, or JDBC FastLoad CSV connections.

This parameter is available for JDBC Monitor connections.

This parameter is available for Raw connections.

PASSWORD

Specifies the password for the Connection when the DriverManager.getConnection method's password argument is omitted or null.

This connection parameter is primarily intended for use with the single-argument DriverManager.getConnection(String url) method.

When the two-argument DriverManager.getConnection(String url, Properties info) method is used, a non-null "password" property value in the Properties info argument will override this connection parameter.

When the three-argument DriverManager.getConnection(String url, String user, String password) method is used, a non-null password argument will override this connection parameter.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 14.00.00.13.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 14.00.00.13.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 14.00.00.13.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 14.00.00.13.

PREP_SUPPORT

Specifies whether the database performs a prepare operation when a PreparedStatement or CallableStatement is created.

  • PREP_SUPPORT=ON (the default) specifies that the database performs a prepare operation when a PreparedStatement or CallableStatement is created. A prepare operation is required for the proper functioning of many Teradata JDBC Driver features.
  • PREP_SUPPORT=OFF avoids a prepare operation when a PreparedStatement or CallableStatement is created. This option is not recommended for production use, and is only intended for troubleshooting performance issues in a test environment.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is not available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

PROXY_BYPASS_HOSTS

Specifies a matching pattern for hostnames and addresses to bypass the proxy server identified by the HTTPS_PROXY parameter. This parameter may only be specified in conjunction with the HTTPS_PROXY parameter.

Separate multiple hostnames and addresses with a vertical bar | character. Specify an asterisk * as a wildcard character.

When this parameter is omitted, the default pattern is localhost|127.*|[::1] which bypasses the proxy server identified by the HTTPS_PROXY parameter for common variations of the loopback address.

When the proxy server identified by the HTTPS_PROXY parameter is bypassed, then the Java system proxy settings are used. If no Java system proxy settings are defined, then a direct connection is made to the destination.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.12.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.12.

RECONNECT_COUNT

Enables Teradata Session Reconnect. Specifies the maximum number of times that the Teradata JDBC Driver will attempt to reconnect the session. See Teradata Session Reconnect for more information.

  • Teradata Session Reconnect is enabled by specifying RECONNECT_COUNT or RECONNECT_INTERVAL, or by enabling Recoverable Network Protocol.
  • When RECONNECT_COUNT is omitted, but Teradata Session Reconnect is enabled with other connection parameters or configuration settings, then the default value for RECONNECT_COUNT is 11 attempts.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is available for Raw connections.

Note:  Specifying this parameter will override the normal fail-fast behavior for connection failures.

RECONNECT_INTERVAL

Enables Teradata Session Reconnect. Specifies the number of seconds that the Teradata JDBC Driver will wait in between attempts to reconnect the session. See Teradata Session Reconnect for more information.

  • Teradata Session Reconnect is enabled by specifying RECONNECT_COUNT or RECONNECT_INTERVAL, or by enabling Recoverable Network Protocol.
  • When RECONNECT_INTERVAL is omitted, but Teradata Session Reconnect is enabled with other connection parameters or configuration settings, then the default value for RECONNECT_INTERVAL is 30 seconds.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is available for Raw connections.

Note:  Specifying this parameter will override the normal fail-fast behavior for connection failures.

REDRIVE

Enables Teradata Session Reconnect, and also enables automatic redriving of SQL requests interrupted by database restart. See Teradata Session Reconnect for more information.

  • REDRIVE=0 disables the use of Control Data, disables Recoverable Network Protocol, and disables automatic Redrive of SQL requests. This setting is the default for TYPE=RAW connections.
  • REDRIVE=1 solicits the use of Control Data, but disables Recoverable Network Protocol, and disables automatic Redrive of SQL requests.
  • REDRIVE=2 solicits the use of Control Data, solicits Recoverable Network Protocol, but disables automatic Redrive of SQL requests.
  • REDRIVE=3 solicits the use of Control Data, solicits Recoverable Network Protocol, and specifies no preference with respect to automatic Redrive of SQL requests. This setting is the default for SQL connections.
  • REDRIVE=4 solicits the use of Control Data, solicits Recoverable Network Protocol, and solicits automatic Redrive of SQL requests.

This parameter is available for SQL connections beginning with Teradata Database 14.10 and Teradata JDBC Driver 15.00.00.12.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections beginning with Teradata Database 14.10 and Teradata JDBC Driver 15.00.00.12.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is available for Raw connections.

Note:  The application is not guaranteed to receive the functionality that it solicits with the REDRIVE connection parameter. The database determines whether the functionality is provided or not, depending on the database dbscontrol fields RedriveProtection (67), RedriveDefaultParticipation (68), and DisableRecoverableNetProtocol (77).

REPORT_NAMED_GROUP

Controls whether the driver reports the TLS named group negotiated during the SSL handshake. The default is ON.

  • When omitted, or set to ON, the driver reports the TLS named group negotiated during the SSL handshake. The negotiated TLS named group is available in the ClientSecProdUserId column of the DBC.SessionInfoV and DBC.LogOnOffV views.
  • When set to OFF, the driver does not report the TLS named group.

This parameter is available for SQL connections beginning with Teradata JDBC Driver 20.00.00.61.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 20.00.00.61.

This parameter is available for JDBC Monitor connections beginning with Teradata JDBC Driver 20.00.00.61.

This parameter is available for Raw connections beginning with Teradata JDBC Driver 20.00.00.61.

RUNSTARTUP

Specifies the RUNSTARTUP value as OFF or ON. The default is OFF.

  • When omitted, or set to OFF, specifies that the user's STARTUP SQL request is not executed.
  • When set to ON, the user's STARTUP SQL request is executed after logon. For more information, refer to User STARTUP SQL Request.

This parameter is available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections beginning with Teradata JDBC Driver 15.10.00.08.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

SESSIONS

Specifies the number of FastLoad or FastExport connections to be created, where 1 <= number of FastLoad or FastExport connections <= number of AMPs.

This parameter is not available for SQL connections.

This parameter is not available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

Note:  It is recommended to omit the SESSIONS parameter and let the database determine the appropriate number of FastLoad or FastExport connections.

SIP_SUPPORT

Controls whether the database and Teradata JDBC Driver use StatementInfo Parcel (SIP) to convey metadata.

  • SIP_SUPPORT=ON (the default) specifies that the database and Teradata JDBC Driver use SIP to convey metadata. SIP is required for the proper functioning of many database and Teradata JDBC Driver features.
  • SIP_SUPPORT=OFF disables the use of SIP to convey metadata. This option is not recommended for production use, and is only intended for troubleshooting performance issues in a test environment.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is not available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

SLOB_RECEIVE_THRESHOLD

Controls how small LOB values are received from the database. Small LOB values are pre-fetched from the database before the application explicitly reads data from Blob/Clob objects.

  • SLOB_RECEIVE_THRESHOLD=non-negative size in bytes (the default is 1000 bytes) specifies the maximum small LOB value size that will be received (pre-fetched) from the database in conjunction with ResultSet row data. Any LOB value that exceeds the specified size will be received from the database as a LOB locator, and will require an extra round-trip to obtain the actual data.
  • SLOB_RECEIVE_THRESHOLD=negative number disables pre-fetching by specifying that every LOB value will be received from the database as a LOB locator, and will require an extra round-trip to obtain the actual data.

The default threshold is 1000 bytes when this parameter is omitted.

This parameter is available for SQL connections beginning with Teradata Database 15.10 and Teradata JDBC Driver 15.10.00.05.

This parameter is available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is not available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

Note: Use caution when specifying this parameter. Performance may be improved by specifying a threshold larger than the default, but JVM memory consumption will increase. You must ensure that sufficient JVM memory is available. Be aware that small LOB values compete for space in each message with other non-LOB data values, and you may also need to increase the maximum message size with the MAX_MESSAGE_BODY connection parameter.

SLOB_TRANSMIT_THRESHOLD

Controls how small LOB values are transmitted to the database.

  • SLOB_TRANSMIT_THRESHOLD=non-negative size in bytes (the default is 1000 bytes) specifies the maximum small LOB value size that will be transmitted to the database in conjunction with other parameter values. Any LOB value that exceeds the specified size will be transmitted to the database as a deferred LOB value, and will require an extra "elicit" round-trip to send the actual data.
  • SLOB_TRANSMIT_THRESHOLD=negative number specifies that every LOB value will be transmitted to the database as a deferred LOB value, and will require an extra "elicit" round-trip to send the actual data.

The default threshold is 1000 bytes when this parameter is omitted.

This parameter is available for SQL connections beginning with Teradata Database 15.10 and Teradata JDBC Driver 15.10.00.05.

This parameter is not available for the Default Connection for Java Stored Procedures beginning with Teradata Database 16.0.

This parameter is not available for JDBC FastExport, JDBC FastLoad, and JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

Note: Use caution when specifying this parameter. Performance may be improved by specifying a threshold larger than the default, but JVM memory consumption will increase. You must ensure that sufficient JVM memory is available. Be aware that small LOB values compete for space in each message with other non-LOB data values, and you may also need to increase the maximum message size with the MAX_MESSAGE_BODY connection parameter.

SP_SPL

Specifies behavior for creating or replacing Teradata stored procedures.

  • SP_SPL=SPL (the default) directs the database to store Stored Procedure Language (SPL) source text when a stored procedure is created.
  • SP_SPL=NOSPL directs the database not to store Stored Procedure Language (SPL) source text. If a stored procedure is created without source text, the SHOW PROCEDURE statement will return an error.

This parameter is available for SQL connections.

This parameter is available for the Default Connection for Java Stored Procedures.

This parameter is available for JDBC FastExport and JDBC FastLoad connections.

This parameter is not available for JDBC FastLoad CSV connections.

This parameter is not available for JDBC Monitor connections.

This parameter is not available for Raw connections.

SSLBASE64

Specifies the base64url encoded contents of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE and