1. Make sure the ODBC environment is correct
Amex_Primary/opt/informix/etc# hostname
hostname
Amex_Primary/opt/informix/etc# cat /opt/informix/etc/sqlhosts
cms_ol onipcstr hostname cms_ol
oacms_ol onipcstr hostname oacms_ol
cms_net ontlitcp hostname 50000
cms_hostname ontlitcp hostname 50001
cms_pri ontlitcp primary pri_soc
cms_sec ontlitcp secondary sec_soc
SERVERNUM 1
DBSERVERNAME cms_ol
DBSERVERALIASES oacms_ol,cms_pri,cms_net,cms_hostname
2. Check with command onstat -g glo | grep tli if ODBC process is running (CMS r15 and later)
Primary/# onstat -g glo |grep tli
tli 1 1.55 2.24 3.79
70 903 tli 1.55 2.24 3.79 NA NA
3. Go to Windows, Control Panel\System and Security\Administrative Tools --> Data sources (ODBC) --> User DSN --> amextst1 --> click on configur button. On Connection tab --> correct Host Name IP Address, replace the IP address with ###.###.###.#. And then on Environment tab,confirm the Database Locale = en_US.57372 and make sure you check (check box) Use Server Database Locale.
4. And finally Apply & Test Connection, IBM Informix ODBC Message: Test connection was successful.