/DBCONNECTION - 9.13

Connect ETL Data Transformation Language (DTL) Guide

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect (ETL, Sort, AppMod, Big Data)
Version
9.13
Language
English
Product name
Connect ETL
Title
Connect ETL Data Transformation Language (DTL) Guide
Copyright
2023
First publish date
2003
Last updated
2023-09-11
Published on
2023-09-11T19:01:45.019000

Purpose

To define a database server and user information for connecting to it.

Format

/DBCONNECTION dbms database [ALIAS alias] connection_option

where

connection_option = [AUTHENTICATION {AUTODETECT|DBMS|OS|KERBEROS}] [{USER|REPOSITORY|CYBERARK|AZUREVAULT} username password]

Arguments

dbms

The dbms argument corresponds to the access method through which Connect connects to the database management system (DBMS). The dbms argument value that you specify, however, depends on how Connect connects to the DBMS:

  • When Connect connects to the DBMS through native connectivity exclusively, you specify the name of the DBMS. Valid values include DB2, ORACLE, SYBASE, and TERADATA.
  • When Connect connects to the DBMS through ODBC or JDBC exclusively or through ODBC or JDBC in combination with a native tool, you specify the name of the access method. Valid values include ODBC and JDBC.

Access methods through which Connect connects to supported DBMSs and the corresponding valid DBMS argument values follow:

Access method Valid DBMS argument value Notes
CLI DB2
JDBC JDBC
OCI ORACLE
ODBC ODBC Connectivity can be exclusively ODBC or can be ODBC in combination with a nativetool; for example, ODBC-nzload for Netezza; ODBC-COPY for Amazon Redshift; or ODBC-COPY LOCAL for Vertica.
Open client SYBASE
TTU TERADATA

See Examples.

database

The database argument value corresponds to the data source to which Connect ETL connects. Consider the types of data sources that you would specify as per the DBMS to which you are connecting:

Access method Valid DBMS argument value Applicable DBMSs Types of data sources
CLI DB2 IBM DB2 for Linux, UNIX and Windows IBM DB2 for z/OS DB2 connection alias
JDBC JDBC Apache Hive Applicable NoSQL databases1 JDBC connection string URL
OCI ORACLE Oracle Connect identifier in tnsnames.ora
ODBC ODBC

Access Apache Hive, Applicable NoSQL databases1 Excel IBM DB2

Microsoft SQL Server

Other ODBC sources and targets2 Sybase Teradata

ODBC DSN
ODBC-COPY ODBC Amazon Redshift ODBC DSN
ODBC-COPY LOCAL ODBC Vertica ODBC DSN
ODBC-nzload ODBC Netezza ODBC DSN
ODBC-psql ODBC Greenplum ODBC DSN
Open client SYBASE Sybase Sybase server/database3
TTU TERADATA Teradata Hostname or IP address of the database

1 NoSQL databases include, but are not limited to the following: Apache Cassandra, Apache Hbase, and MongoDB.

2 Connect supports all ODBC 3.0 compliant databases including, but not limited to, the following: SAP HANA, Caché, MySQL, CA DataCom/DB, CA IDMS/DB, Informix, and PostgreSQL.

3 To connect to a specific database on a Sybase Adaptive Server Enterprise (ASE) server with multiple databases, enclose the database name in [ ] and specify it immediately following the server name, e.g. Marketing[TradeShows]. The database argument value can be in the form of a string or identifier. An identifier and a string must adhere to the rules described for an identifier. For a summary of valid naming and formatting conventions for identifiers and constants, see Syntax reference in the Connect help.

See Examples.

alias

A name you assign to the database connection, which you use to reference the connection in other options. The name assigned to a database connection must adhere to the rules described for an identifier. For a summary of valid naming and formatting conventions for identifiers and constants, see syntax reference in the Connect help.

When you do not assign an alias, use the database argument to refer to the connection in other options. When you define an alias for the connection, you should reference the connection only through the alias; you can no longer reference the database name directly in other options.

username The username under which to connect to the database. The username must be in the form of a string, which you can provide in any valid format. For a summary of valid naming and formatting conventions for identifiers and constants, see Syntax reference in the Connect help.
password

The password to authenticate the connection for username. The password must be in the form of a string, which you can provide in any valid format. For a summary of valid naming and formatting conventions for identifiers and constants, see GUIMSG_NAMED_DEFINITION_CANNOT_BE_REDEFINED in the Connect help.

To use a Repository password, specify REPOSITORY and enter a password variable for the password. Create password variables using the Connect ETL repository manager as described in the Connect help. Note that you must define the password variable on the same system on which, and as the same user by whom, this command application runs. At runtime, Connect ETL retrieves the password associated with the specified variable from the repository. A Repository password can be specified as an environment variable that points to the Repository variable.

To use passwords stored in CyberArk, specify CYBERARK and enter a password variable for the password. Setup a password variable manually in an execution profile as described in the Connect help. Connect ETL retrieves the password associated with the specified variable from CyberArk. CyberArk also requires a TLS-secured HTTPS connection to deliver passwords, which requires client certificates setup in the Connect ETL Server dialog or repository manager.

To use passwords stored in Azure Key Vault, specify AZUREVAULT and enter a password variable for the password. Setup a password variable manually in an execution profile as described in the Connect help. Connect ETL retrieves the password associated with the specified variable from Azure Key Vault. Azure Key Vault also requires a TLS-secured HTTPS connection to deliver passwords, which requires client certificates setup in the Connect ETL Server dialog or repository manager.

Location

The option may appear anywhere in the task definition.

Notes

You can use the connection in the /DBINPUT or /DBOUTPUT options to identify a database table source or target.

Authentication

To specify whether Connect ETL or the database client determines the authentication method, select AUTHENTICATION AUTODETECT.

To specify that the DBMS authenticates the specified user name and password, either use AUTHENTICATION DBMS or do not specify an AUTHENTICATION argument.

To specify that the operating system authenticates using your operating system login credentials, use AUTHENTICATION OS without a user name and password. To exclude the user name and password, either omit the USER argument or provide empty strings defined through environment variables.

To specify that Kerberos use an existing Kerberos ticket for authentication, use AUTHENTICATION KERBEROS.

Examples

/DBCONNECTION ORACLE transaction_database user "john" "john123"
The option requests a connection to the Oracle database transaction_database as user john with password john123.
/DBCONNECTION ORACLE transaction_database user "john" "john123" alias transaction_connection
The option requests a connection to the Oracle database transaction_database as user john with password john123. The database connection is assigned an alias, transaction_connection, that can be used to reference the connection in other options.
/DBCONNECTION ORACLE transaction_database authentication OS
The option requests a connection to the Oracle database transaction_database using Operating System authentication.
/DBCONNECTION ODBC $HIVE_ODBC ALIAS impala USER "$HIVE_ODBC_USER_NAME" "$HIVE_ODBC_USER_PASSWORD"

The option requests an ODBC connection, whose alias is impala, to a Hive database, which is identified by the environment variable, $HIVE_ODBC. The value defined to $HIVE_ODBC is the ODBC DSN, which is the type of data source applicable to ODBC connections. See database. As the access method to the Hive database is ODBC, ODBCserves as the dbms argument value. For valid DBMS argument values, see dbms. The name and password of the user attempting to login to the Hive database are identified by the environment variables, $HIVE_ODBC_USER_NAME and $HIVE_ODBC_USER_PASSWORD.

Note: JDBC is recommended over ODBC for Hive source and target connections to enable greater ease of use and configuration and to allow for reading from Hive sources and writing to Hive targets when running in the cluster. ODBC is only supported for jobs run on the ETL server/edge node or on a single cluster node, which requires installing the ODBC driver on every node in the cluster.
/DBCONNECTION JDBC $HIVE_JDBC ALIAS impala USER "$HIVE_JDBC_USER_NAME" "$HIVE_JDBC_USER_PASSWORD"
The option requests a JDBC connection, whose alias is impala, to a Hive database, which is identified by the environment variable, $HIVE_JDBC. The value defined to $HIVE_JDBC is the JDBC connection string URL, which is the type of data source applicable to JDBC connections. See database. As the access method to the Hive database is JDBC, JDBCserves as the dbms argument value. For valid DBMS argument values, see dbms. The name and password of the user attempting to login to the Hive database are identified by the environment variables, $HIVE_JDBC_USER_NAME and $HIVE_JDBC_USER_PASSWORD.
/DBCONNECTION DB2 db2_database ALIAS db2_connect USER "$DB2_USER_NAME" "$DB2_USER_PASSWORD"

The option requests a native DB2 connection, whose alias is db2_connect, to a DB2 database, db2_database. The DB2 database value, db2_database, is the DB2 connection alias, which is the type of data source applicable to native DB2 connections. See database. As the access method to the DB2 database is through native CLI connectivity, the DBMS name, DB2,serves as the dbms argument value. For valid DBMS argument values, see dbms. The name and password of the user attempting to login to the DB2 database are identified by the environment variables, $DB2_USER_NAME and $DB2_USER_PASSWORD.