![]() |
![]()
| ![]() |
![]()
NAME/etc/odbcinst.ini - unixODBC driver configuration file DESCRIPTION/etc/odbcinst.ini is a configuration file for unixODBC drivers. The file can be updated by using the odbcinst utility (recommended) or edited by hand. FILE FORMATThe 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 that section in files such as odbc.ini. Within each section, unixODBC also recognises the following configuration keys:
TEMPLATE FILESMany ODBC drivers come with .ini file templates, which can be installed by using the odbcinst utility. Template files use the same format as odbcinst.ini. EXAMPLESTo install the unixODBC PostgreSQL driver, the following configuration can be entered into odbcinst.ini: [PostgreSQL] Description = PostgreSQL driver for GNU/Linux Driver = /usr/lib/psqlodbcw.so Setup = /usr/lib/libodbcpsqlS.so FileUsage = 1 Driver paths can vary, depending on your operating system and whether your distribution is multi-arch enabled. Some drivers also require Driver64 and Setup64 entries. The above section can be referenced in odbc.ini as follows: Driver = PostgreSQL The recommended way of adding the PostgreSQL driver to your system 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 calling odbcinst as follows: # odbcinst -i -d -f template.ini
SEE ALSOunixODBC(7), odbcinst(1), odbc.ini(5) "The unixODBC Administrator Manual (HTML)" AUTHORSThe authors of unixODBC are Peter Harvey <pharvey@codebydesign.com> and Nick Gorham <nick@lurcher.org>. For a full list of contributors, refer to the AUTHORS file. COPYRIGHTunixODBC is licensed under the GNU Lesser General Public License. For details about the license, see the COPYING file.
|