odbcinst.ini(5) | unixODBC manual pages | odbcinst.ini(5) |
/etc/odbcinst.ini - An unixODBC drivers configuration
/etc/odbcinst.ini is a text configuration file for unixODBC drivers. It can be edited by hand, but the recommended way to update this file is to use the odbcinst(1) utility.
The general .ini file format is:
[SectionName1] key1 = value1 key2 = value2 ... [SectionName2] key1 = value1 key2 = value2 ...
Each ODBC driver has its own section and can be referred to by the name of its section. Recognized configuration keys are:
The recommended way to manage the drivers is using the odbcinst(1) utility. You can install the drivers by supplying it with template file, which has the same format as this file.
An example of the actual PostgreSQL driver:
[PostgreSQL] Description = PostgreSQL driver for GNU/Linux Driver = /usr/lib/psqlodbcw.so Setup = /usr/lib/libodbcpsqlS.so FileUsage = 1
By specifying the driver like that, you can then reference it in the odbc.ini(5) as follows:
Driver = PostgreSQL
The recommended way to add that driver is by creating a template file containing:
[PostgreSQL] Description = PostgreSQL driver for GNU/Linux Driver = /usr/lib/psqlodbcw.so Setup = /usr/lib/libodbcpsqlS.so
and call the odbcinst(1):
The authors of unixODBC are Peter Harvey <pharvey@codebydesign.com> and Nick Gorham <nick@lurcher.org>. For the full list of contributors see the AUTHORS file.
unixODBC is licensed under the GNU Lesser General Public License. For details about the license, see the COPYING file.
Thu 27 Jun 2013 | version 2.3.2 |