I have an old server (Solaris 8) running Informix Dynamic Server 2000 Version 9.21.UC4, and I want to get ODBC enabled so that I can get to the data from elsewhere, but I haven't been able to find documentation online about how to do this on the server. I am able to use dbaccess on the server to get to the data just fine, but when I look through the service listing I don't see anything enabled for IDS…
Thoughts? Direction?
Thank you!
Additional thoughts:
- My server's host name is "r3tmmtx"
- The informix internal server name seems to be "cms_ol"
My sqlhosts file:
demo_on onipcshm on_hostname on_servername
demo_se seipcpip se_hostname sqlexec
cms_ol onipcshm r3tmmtx cms_ol
oacms_ol onipcstr r3tmmtx oacms_ol
My environment variables with "INFORMIX" in them:
INFORMIXTERM=terminfo
INFORMIXDIR=/opt/informix
INFORMIXSERVER=cms_ol
Best Answer
IDS is automatically configured to accept ODBC connections when it accepts DB-Access ones too. What is trickier, perhaps, is telling ODBC how to connect to IDS. Here is a .odbc.ini file I used on Solaris - I believe that suitably adapted, it should work for you.
No - that isn't my actual password. I also have a suitably configured sqlhosts file:
The OBDC file uses the first of these entries.
If you are aiming to connect to IDS from a PC, then you need to configure the ODBC connections on the PC, an area I'm anything but an expert in. One of the tools of relevance is SETNET32 (distributed with CSDK on Windows only). You may also need (or want) to configure DSN-less connections - I've not bothered to do so because I usually use ESQL/C rather than ODBC to connect to IDS.
Also, be aware that both IDS 9.30 and 9.40 are out of service now - IDS 9.21 has been out of service for a long time.