Xqe-jdb-0001 Problem Establishing Connection. Please Check The Database Server 【DELUXE · WALKTHROUGH】
From the Cognos server machine, try:
telnet your-db-host 1433 (for SQL Server)
nc -zv your-db-host 5432 (for PostgreSQL)
If the port is closed, check firewalls, network ACLs, and whether the DB service is running.
Before attempting fixes, diagnose the underlying cause. The error is generic, but the roots fall into six categories:
A very specific scenario causes this error frequently during development: From the Cognos server machine, try: telnet your-db-host
The Scenario: You develop a report on your laptop. You use a connection string pointing to localhost or 127.0.0.1. Everything works fine.
The Problem: You deploy that report to the production server. The connection string still says localhost. The production server tries to connect to "localhost," looking for a database on the production server itself, which doesn't exist.
The Fix: Ensure your connection strings use the actual IP address or Fully Qualified Domain Name (FQDN) of the database server, never localhost.
telnet your-database-hostname 5432 (for PostgreSQL) telnet your-database-hostname 3306 (for MySQL) telnet your-database-hostname 1521 (for Oracle) telnet your-database-hostname 1433 (for SQL Server) If the port is closed, check firewalls, network
If telnet fails (hangs or "Connection refused"):
To understand the error, let's break down the code:
Thus, the error translates to: The query execution engine, using JDBC, failed to open a network socket or handshake with the target database server. If telnet fails (hangs or "Connection refused"): To
From the Application Server (the machine generating the error), open a command prompt and test the connection to the database server.
Review the configuration in your reporting tool (e.g., Cognos Data Source Connection).