Connecting to IBM DB2

The Sisense IBM DB2 connector is a vendor-certified connector that allows you to import data from IBM database into Sisense via the Sisense generic JDBC connector.

The support for the connector is provided by Sisense and will be assisted by the vendor's support, if needed. For any support issues or additional functionality requests, please contact your Sisense representative or open a request through the Sisense Help Center. For advanced inquiries specific to driver functionality, you can also contact the vendor’s support here.

After you have downloaded the driver, you can connect through a connection string in Sisense. The connection string is used to authenticate users who connect to the IBM Data Server APIs. Once you have connected, you can import a variety of tables from the IBM database.

This page describes how to download the IBM DB2 driver and deploy it, and how to connect to IBM DB2 with a connection string.

Note: For the list of connectors available on Linux, click here.

Downloading the IBM DB2 Driver

You can download the IBM DB2 JDBC driver here.

Note:

Deploying the IBM DB2 Driver

  1. Create a folder called IBM DB2 in the directory
    ...\ProgramData\Sisense\DataConnectors\jdbcdrivers\
  2. Extract the contents of the downloaded driver file into this folder.

Accessing IBM DB2 via Connection String

With JDBC, a database is represented by a connection string, or URL, that defines its location and additional properties.

The connection string required to connect to IBM DB2 has the following form:

jdbc:db2://<host>[:<port>]/<database_name>:sslConnection=true;

For IBM DB2, your connection string should include the following:

For more information, see here.

Connecting to IBM DB2 via Generic JDBC

  1. Open Sisense.
    For a non-local installation, open Sisense on the hosted cloud environment.
  2. In the Data page, open an ElastiCube or create a new ElastiCube.
  3. In the Model Editor, click . The Add Data dialog box is displayed.
  4. Click Generic JDBC to open the JDBC settings.
  5. In Connection String, enter the IBM DB2 URL. See Accessing IBM DB2 via Connection String for more information.
  6. In JDBC JARs Folder, enter the name of the directory where the IBM DB2 JAR file is located (see Deploying the IBM DB2 Driver).
  7. In Driver's Class Name, enter the following class name: com.ibm.db2.jcc.DB2Driver
  8. In User Name and Password, enter your credentials to IBM DB2. These fields are not required if the user name and password were provided in the connection string.
  9. Click Next. A list of tables in the database are displayed. All tables and views associated with the database will appear in a new window.
  10. From the Tables list, select the relevant table or view you want to work with. You can click next to the relevant table or click Preview to see a preview of the data inside it. 
  11. (Optional) Click + to customize the data you want to import with SQL. See Importing Data with Custom Queries for more information.
  12. After you have selected all the relevant tables, click Done. The tables are added to your data model.