0 / 0
Connecting to your Watson Query service instance

Connecting to your Watson Query service instance

You can connect command-line interfaces, IBM® or third-party applications and tools, or apps that you create to your Watson Query instance.

Prerequisites

Before you try to connect to your Watson Query instance, verify the prerequisites.

Step 1. Collect database details and credentials

To connect to your database, you need database details (such as the hostname), and credentials (such as a user ID and password.). You can collect this connection information from the Service credentials of the Watson Query service instance or from the Watson Query web console.

For more information, see Database details and connection credentials in Watson Query.

Step 2. Verify that a supported driver is installed
Step 3. Configure your environment
  1. Add entries to the driver configuration file, db2dsdriver.cfg, for your database.

  2. Configure Secure Sockets Layer (SSL). Connection details, such as which port to use and the connection string, depend on whether you use SSL connections. SSL is the default connection method.

    To use SSL connections, you need a CA certificate:

    • If you use the most recent Watson Query driver package, the certificate file is bundled with the package and is used for connections.
    • If you use the IBM Data Server Driver Package, you can download the SSL certificate from the Watson Query web console.
For more information, see the following resources:
Step 4. Confirm that ports are available

If your network is behind a firewall, confirm that communications are allowed on the port that is needed to connect to the Watson Query service. The port number can be found in the connection information from the Service credentials table of the Watson Query service instance or from the Watson Query web console.

Connectivity options

Watson Query offers multiple secure connectivity options that depend on your application connection requirements.

For more information, see Connectivity options in Watson Query.

Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more