Jean Jordaan Asked: 2010-11-20 08:26:59 +0800 CST2010-11-20 08:26:59 +0800 CST 2010-11-20 08:26:59 +0800 CST Is there any way to use ~/odbcinst.ini instead of /etc/odbcinst.ini? 772 Looking at http://www.unixodbc.org/odbcinst.html it looks like this is a compile-type option only. unixodbc 1 Answers Voted Best Answer dmaestro12 2011-06-09T12:14:01+08:002011-06-09T12:14:01+08:00 From the Administrator Manual (doc/AdministratorManual/index.html): The location of the system config files can be changed by setting the ODBCSYSINI environment variable at run-time. So this should work: ODBCSYSINI=$HOME isql ... Or add the line export ODBCSYSINI=$HOME to your .bash_profile Note the the odbc.ini file will be looked for in your home directory also.
From the Administrator Manual (doc/AdministratorManual/index.html):
So this should work:
Or add the line
to your .bash_profile
Note the the odbc.ini file will be looked for in your home directory also.