ODBC support for the remote engine
Last updated: Mar 12, 2025
Follow this instruction to use the ODBC connection for a remote engine.
Procedure
- Download the docker image.
- Create the directories
ds-storage
andpx-storage
to mount to the remote engine. - Download the
rpm
file to install cdata ODBC driver for the data source. - Run the docker container as the root user with the following command:
docker run -d --user root --name <container_name> -p 9443:9443 -p 10003:10003 -p 10002:10002 -p 7777:7777 --hostname=hostname --env-file <env file path> -v <local path to px-storage>:/px-storage -v <local path to ds-storage>:/ds-storage <docker image name>
- Instal unixODBC with the following command:
microdnf -y install unixODBC
- Copy the cdata ODBC driver
rpm
file into the docker container and install the driver with the following command:rpm –install <path to rpm file>
The driver is installed in /opt/cdata/<driver name>.
- Use the following command to see the files created during installation:
rpm -qlp IBMDB2ODBCDriverforUnix.rpm
- Move the driver to px-storage by copying the directory /opt/cdata/<driver name> .
- Stop and restart the docker, but not as a root user. Confirm that the data driver is in the PX-storage location and not in the /opt/data.
- Follow the instruction provided by cdata to activate the ODBC license.
- To check the current ODBC configuration, use the following command:
odbcinst -j
- To confirm if a template for the DSN entry is appended to the file, check the odbc.ini file.
- Update the DSN entry for the new datasource and save the odbc.ini file.
- To use this DSN in the DataStage® flow, create
a new ODBC connection with the following setup.
- For Data source type choose Use DSN from ODBC configuration.
- In the Data source name, provide the DSN name.
For more information about creating connections, see Connecting to a data source in DataStage.
Was the topic helpful?
0/1000