Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Kyle Campbell — — source: Informix-list mailing list archive (1991-1998)
In article <3545E1E2.4D38@bloomberg.com>, kagel@bloomberg.com says...
> magnus.lundgren@home.se wrote:
> >
> > Hi!
> >
> > I am trying to access an Informix Dynamic Server Database 7.3 on Windows NT
> > through ODBC but I get the following error:
> >
> > SQLDriverConnect returned: SQL_ERROR=-1
> > dbc: szSqlState = "HY000", *pfNativeError = -931, *pcbErrorMsg = 104
> > MessageText = "[INTERSOLV][ODBC Informix driver][Informix]Cannot locate
> > olsoctcp service/tcp service in /etc/services.
> >
> > What should I look for?
>
> The service name/number in the client's setup for connection to that
> host does not exist on the server's setup. You need to add the service
> to the equivalent of the UNIX /etc/services file.
>
> Art S. Kagel
>
I received the error even though the service was listed. Instead of defining
the service name in setnet32 and ODBC setup as listed in the /etc/services file
you could try defining it as the actual port number (e.g.: 3000). It worked
for me. Possibly the client can't 'read' the services file on the server.
-Kyle
kyle@fix.net
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.