IBM Db2 connection

To access your data in an IBM Db2 database, create a connection asset for it.

IBM Db2 is a database that contains relational data.

Supported versions

IBM Db2 10.1 and later

Create a connection to Db2

To create the connection asset, you need these connection details:

Credentials

If you select Shared, enter your username and password for the server.

If you select Personal, you have one of three choices:

For Credentials and Certificates, you can use secrets if a vault is configured for the platform and the service supports vaults. For information, see Using secrets from vaults in connections.

Choose the method for creating a connection based on where you are in the platform

In a project Click Add to project > Connection. See Adding a connection to a project.


In a catalog Click Add to catalog > Connection. See Adding a connection asset to a catalog.


In a deployment space Click Add to space > Connection. See Adding connections to a deployment space.


In the Platform assets catalog Click New connection. See Adding platform connections.

Next step: Add data assets from the connection

Where you can use this connection

You can use Db2 connections in the following workspaces and tools:

Analytics projects

Catalogs

Data Virtualization service You can connect to this data source from Data Virtualization.

Running SQL statements

To ensure that your SQL statements run correctly, refer to the IBM Db2 product documentation for the correct syntax.

Cloud Pak for Data credentials setup (Optional)

To use Cloud Pak for Data credentials, you must set up JWT token authentication on the Db2 server. For instructions, see Token configuration file.

Learn more

IBM Db2 product documentation

Parent topic: Supported connections