Build DB2-Connected Dashboards Using Zoho Analytics

Dibyendu Datta
Dibyendu Datta
Lead Technology Evangelist
Use CData Connect AI to connect to DB2 Data from Zoho Analytics and import live DB2 data.

Zoho Analytics is a modern BI and Analytics platform that allows you to connect and analyze your data, while also creating visualizations and dashboards to discover hidden insights. When paired with CData Connect AI, Zoho Analytics provides instant, cloud-to-cloud access to DB2 data for reporting and analytics. This article demonstrates how to connect to DB2 using Connect AI and analyze DB2 data by creating dashboards in Zoho Analytics.

CData Connect AI provides a pure cloud-to-cloud interface for DB2, allowing you to analyze DB2 data in Zoho Analytics — without replicating the data to a natively supported database. Using optimized data processing out of the box, CData Connect AI pushes all supported SQL operations (filters, JOINs, etc.) directly to DB2, leveraging server-side processing to return the requested DB2 data quickly.

Configure DB2 Connectivity for Zoho Analytics

Connectivity to DB2 from Zoho Analytics is made possible through CData Connect AI. To work with DB2 data from Zoho Analytics, we start by creating and configuring a DB2 connection.

  1. Log into Connect AI, click Sources, and then click Add Connection
  2. Adding a Connection
  3. Select "DB2" from the Add Connection panel
  4. Selecting a data source
  5. Enter the necessary authentication properties to connect to DB2.

    Set the following properties to connect to DB2:

    • Server: Set this to the name of the server running DB2.
    • Port: Set this to the port the DB2 server is listening on.
    • Database: Set this to the name of the DB2 database.
    • User: Set this to the username of a user allowed to access the database.
    • Password: Set this to the password of a user allowed to access the database.

    You will also need to install the corresponding DB2 driver:

    • Windows: Install the IBM Data Server Provider for .NET.

      On Windows, installing the IBM Data Server Provider is sufficient, as the installation registers it in the machine.config.

    • Java: Install the IBM Data Server Driver for JDBC.

      In the Java version, place the IBM Data Server Driver JAR in the www\WEB-INF\lib\ folder for this application.

    Configuring a connection (Salesforce is shown)
  6. Click Save & Test
  7. Navigate to the Permissions tab in the Add DB2 Connection page and update the User-based permissions. Updating permissions

Add a Personal Access Token

When connecting to Connect AI through the REST API, the OData API, or the Virtual SQL Server, a Personal Access Token (PAT) is used to authenticate the connection to Connect AI. It is best practice to create a separate PAT for each service to maintain granularity of access.

  1. Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
  2. On the Settings page, go to the Access Tokens section and click Create PAT.
  3. Give the PAT a name and click Create. Creating a new PAT
  4. The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.

With the connection configured and a PAT generated, you are ready to connect to DB2 data from Zoho Analytics.

Connect to DB2 in Zoho Analytics Using CData Connect AI

To establish a connection from Zoho Analytics to CData Connect AI, follow these steps:

  1. Log in to Zoho Analytics.
  2. Logging into Zoho Analytics
  3. Create a new connection and select Cloud Databases to open the connection modal.
  4. Creating a new connection
  5. Enter the following information:
    • Database Type - select MS SQL Server.
    • Endpoint - enter tds.cdata.com
    • SQL Server Instance Name - leave this blank.
    • Port - enter 14333
    • Username - enter your CData Connect AI username. This is displayed in the top-right corner of the CData Connect AI interface. For example, [email protected].
    • Password - enter the PAT you generated.
    • Database Name - enter the Connection Name of the CData Connect AI data source you want to connect to (for example, DB21).
    • Click Next.
    • Displaying configuration settings
  6. Choose the table that you would like to import from, e.g. Orders.
  7. Choosing table to import
  8. A Data Preview of the table should pop up. Next, enter a Workspace Name and Table Name to be able to refer to in Zoho Analytics. Click Next.
  9. Displaying data preview
  10. There is an option to schedule the import periodically. After configuring, click Create.
  11. Scheduling the import
  12. Now, the import has been initiated. Click OK.
  13. Initiating the import
  14. View your new connection in the Zoho Analytics Explorer.
  15. Viewing new connection
  16. Click on the new connection to see the table.
  17. Viewing the table
  18. Zoho Analytics can auto-generate dashboards for the user, as seen here:
  19. Auto-generating a dashboard

We have successfully imported DB2 data into Zoho Analytics and created dashboards.

Get CData Connect AI

To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!

Ready to get started?

Learn more about CData Connect AI or sign up for free trial access:

Free Trial