Using the DataDirect Driver Manager
Some ODBC client programs ship with their own ODBC driver managers, as opposed to the open-source unixODBC. For example, Informatica, OBIEE, and SAS use the DataDirect driver manager. See Using from Tools for application-specific configuration.
To avoid incompatibilities between unixODBC and your ODBC client application's ODBC driver manager, we would recommend uninstalling unixODBC before configuring the driver.
Set the Driver Encoding
The CData ODBC driver also supports the ODBC environment attributes SQL_ATTR_APP_UNICODE_TYPE and SQL_ATTR_DRIVER_UNICODE_TYPE, which the DataDirect ODBC Driver Manager uses to automatically set the encoding depending on what the client applications expects. If those attributes are supported by the client application, character encoding is defined automatically.
If those attribute aren't specified, the encoding can be set manually, in '/opt/cdata/cdata-odbc-driver-for-okta/lib/cdata.odbc.okta.ini'. By default, the DataDirect Driver Manager uses UTF-8:
[Driver]
DriverManagerEncoding=UTF-8
Register the Driver
In the driver configuration file, "odbcinst.ini", register the driver name. Note that this step is not required for SAS and Informatica.
The location of this file may depend on your installation. Some applications search environment variables for the ODBC configuration files, such as $ODBCHOME.
[CData ODBC Driver for Okta]
Driver=/opt/cdata/cdata-odbc-driver-for-okta/lib/liboktaodbc.x64.so
Description=CData ODBC Driver for Okta 2024
Configure the DSN
In the DSN configuration file, "odbc.ini", make sure to specify the driver library by its full path, as opposed to the driver name like with unixODBC. You can then enter the other connection properties required by the specific data source.
The location of this file may depend on your installation. Some applications search environment variables for the ODBC configuration files, such as $ODBCHOME.
[CData Okta Source]
Driver=/opt/cdata/cdata-odbc-driver-for-okta/lib/liboktaodbc.x64.so
Domain=dev-44876464.okta.com
OAuthClientId=myId
OAuthClientSecret=mySecret
InitiateOAuth=GETANDREFRESH
See Linux DSN Configuration for a guide to connecting to Okta.