7782fd
.TH odbcinst.ini 5 "Thu 27 Jun 2013" "version 2.3.1" "unixODBC manual pages"
7782fd
7782fd
.SH NAME
7782fd
/etc/odbcinst.ini - An unixODBC drivers configuration
7782fd
7782fd
.SH DESCRIPTION
7782fd
.B /etc/odbcinst.ini
7782fd
is a text configuration file for unixODBC drivers. It can be edited by hand,
7782fd
but the recommended way to update this file is to use the
7782fd
.BR odbcinst (1)
7782fd
utility.
7782fd
7782fd
.SH FILE FORMAT
7782fd
The general .ini file format is:
7782fd
7782fd
.RS
7782fd
.nf
7782fd
.BI [ SectionName1 ]
7782fd
.IB key1 " = " value1
7782fd
.IB key2 " = " value2
7782fd
.B ...
7782fd
7782fd
.BI [ SectionName2 ]
7782fd
.IB key1 " = " value1
7782fd
.IB key2 " = " value2
7782fd
.B ...
7782fd
.fi
7782fd
.RE
7782fd
7782fd
Each ODBC driver has its own section and can be referred to by the name of its
7782fd
section. Recognized configuration keys are:
7782fd
7782fd
.IP \fBDescription
7782fd
A text string briefly describing the driver.
7782fd
7782fd
.IP \fBDriver
7782fd
A filesystem path to the actual driver library.
7782fd
7782fd
.IP \fBSetup
7782fd
A filesystem path to the driver setup library.
7782fd
7782fd
.IP \fBFileUsage
7782fd
.BR odbcinst (1)
7782fd
entry, if you edit the configuration file by hand, you have to supply it yourself.
7782fd
7782fd
.SS TEMPLATE FILES
7782fd
The recommended way to manage the drivers is using the
7782fd
.BR odbcinst (1)
7782fd
utility. You can install the drivers by supplying it with template file, which
7782fd
has the same format as this file.
7782fd
7782fd
.SH EXAMPLES
7782fd
An example of the actual PostgreSQL driver:
7782fd
7782fd
.RS
7782fd
.nf
7782fd
[PostgreSQL]
7782fd
Description = PostgreSQL driver for GNU/Linux
7782fd
Driver      = /usr/lib/psqlodbcw.so
7782fd
Setup       = /usr/lib/libodbcpsqlS.so
7782fd
FileUsage   = 1
7782fd
.fi
7782fd
.RE
7782fd
7782fd
By specifying the driver like that, you can then reference it in the
7782fd
.BR odbc.ini (5)
7782fd
as follows:
7782fd
7782fd
.RS
7782fd
.nf
7782fd
...
7782fd
Driver = PostgreSQL
7782fd
...
7782fd
.fi
7782fd
.RE
7782fd
7782fd
The recommended way to add that driver is by creating template file containg:
7782fd
7782fd
.RS
7782fd
.nf
7782fd
[PostgreSQL]
7782fd
Description = PostgreSQL driver for GNU/Linux
7782fd
Driver      = /usr/lib/psqlodbcw.so
7782fd
Setup       = /usr/lib/libodbcpsqlS.so
7782fd
.fi
7782fd
.RE
7782fd
7782fd
and call the 
7782fd
.BR odbcinst (1):
7782fd
7782fd
.RS
7782fd
.BI "# odbcinst -i -d -f " template.ini
7782fd
.RE
7782fd
7782fd
.SH "SEE ALSO"
7782fd
.BR odbcinst (1),
7782fd
.BR odbc.ini (5)
7782fd
7782fd
.SH AUTHORS
7782fd
The authors of unixODBC are Peter Harvey <\fIpharvey@codebydesign.com\fR> and
7782fd
Nick Gorham <\fInick@easysoft.com\fR>. For the full list of contributors see the
7782fd
AUTHORS file.
7782fd
7782fd
.SH COPYRIGHT
7782fd
unixODBC is licensed under the GNU Lesser General Public License. For details
7782fd
about the license, see the COPYING file.