Product: | DBConnectivity Products for IBM Db2 for i (HiT ODBC/400, HiT OLEDB/400, Ritmo/i, HiT JDBC/400) |
Version: | All |
ID: | 1079 |
Summary: | Connection fails because IBM Db2 for i setup is incomplete: “ConnectException: Connection refused” |
If a connection fails with the message "“ConnectException: Connection refused” when attempting to connect from the data connector, check that the IBM i has the required services and the QSERVER subsystem running:
- Make sure that TCP/IP is running on the IBM i.
- Run WRKSBS to make sure that the QSERVER subsystem is working. If QSERVER is not running, start it using the command STRSBS QSERVER.
- On the IBM i, run STRHOSTSVR *ALL with security officer permissions.