SQLGetPrivateProfileString failed with

后端 未结 4 2028
Happy的楠姐
Happy的楠姐 2020-12-20 16:52

Typing the command: odbcinst -q -s on RHEL 6, I get the following error message:

odbcinst: SQLGetPrivateProfileString failed with .

All my

4条回答
  •  醉酒成梦
    2020-12-20 17:06

    Type the command: env |grep 'ODBC' to check if the ODBCSYSINI and the ODBCINI variables are set. If no results are returned - you need to add the variables to the environment variable pointing to the directory and the path to where the odbc.ini file is located as follows (in my case for RHEL 6 it is located at /etc - others may have it on /usr/local/etc):

    Edit ~\.bash_profile and add the following lines:

    export ODBCSYSINI=/etc
    export ODBCINI=/etc/odbc.ini
    

    You are good to go!

提交回复
热议问题