odbcinst.ini(5)
β¨ NAME β¨
okay so this is odbcinst.ini(5) π (the unixODBC manual pages, bestie!) and it's all about /etc/odbcinst.ini, the config file for unixODBC drivers π
πΈ DESCRIPTION πΈ
/etc/odbcinst.ini is a configuration file for unixODBC drivers, and it's giving main character energy π
The file can be updated by using the odbcinst utility (recommended) or edited by hand. Honestly the utility is the move π
π¦ FILE FORMAT π¦
The general .ini file format is:
[SectionName1]
key1 = value1
key2 = value2
...
[SectionName2]
key1 = value1
key2 = value2
...
Each ODBC driver gets its own section, and you can refer to it by the name of that section in files such as odbc.ini. Inside each section, unixODBC also recognises the following keys, so pay attention π§
Descriptionβ a text string briefly describing the driver. Lowkey the vibe check for your driver πDriverβ a filesystem path to the actual driver library πSetupβ a filesystem path to the driver setup library β¨FileUsageβ okay this one's a bit special. The section named[ODBC]configures global options, and the keys recognised in the[ODBC]section include:Traceβ enables ODBC driver trace output, which is written to the file path specified byTraceFileπ₯
Some ODBC drivers have their own trace control options. Unlike the Trace option, these separate options are usually specified at the Data Source Name (DSN) level, so don't mix them up bestie π
Trace will be enabled if the corresponding value contains any case variant of "1", "y", "yes" or "on" π
TraceFileβ specifies the system path or path-pattern that ODBC driver trace output will be written to. This option has no effect unlessTraceis enabled. The default file location for trace output is/tmp/sql.logπ¦
WARNING: Setting TraceFile to a path writable by multiple users might not work correctly, as only the first user will be able to create and open the file. π
π TEMPLATE FILES π
Many ODBC drivers come with .ini file templates, which you can install by using the odbcinst utility. So easy π«Ά
Template files use the same format as odbcinst.ini β¨
π EXAMPLES π
To install the unixODBC PostgreSQL driver, you can enter the following configuration 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, so keep that in mind π
The above section can be referenced in odbc.ini like this:
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 then calling odbcinst like this:
# odbcinst -i -d -f template.ini
π§ SEE ALSO π§
unixODBC(7), odbcinst(1), odbc.ini(5) β
"The unixODBC Administrator Manual (HTML)" π
π AUTHORS π
The 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 πΈ
βοΈ COPYRIGHT βοΈ
unixODBC is licensed under the GNU Lesser General Public License. For details about the license, see the COPYING file π₯
bestie, you made it π₯Ήβ¨ this was odbcinst.ini(5) from unixODBC version 2.3.12, dated Tue 12 Jan 2021 π slay forever π π
π¦ where this page comes from
- alpine 3.22: unixodbc-doc 2.3.12-r0 Β· LGPL-2.0-or-later
- alpine 3.23: unixodbc-doc 2.3.14-r0 Β· LGPL-2.0-or-later
- alpine 3.24: unixodbc-doc 2.3.14-r1 Β· LGPL-2.0-or-later
- arch rolling: unixodbc 2.3.14-1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- centos-stream 10: unixODBC 2.3.12-6.el10 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- centos-stream 9: unixODBC 2.3.12-2.el9 Β· GPLv2+ and LGPLv2+
- centos-stream 9: unixODBC 2.3.12-2.el9 Β· GPLv2+ and LGPLv2+
- debian trixie: unixodbc-common 2.3.12-2+deb13u1 Β· LGPL-2.1-or-later
- fedora 43: unixODBC 2.3.12-7.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: unixODBC 2.3.12-7.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: unixODBC 2.3.14-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: unixODBC 2.3.14-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: unixODBC 2.3.14-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: unixODBC 2.3.14-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: unixodbc 2.3.14
- nixpkgs unstable: unixodbc 2.3.14
- ubuntu noble: unixodbc-common 2.3.12-1build2 Β· LGPL-2.1-or-later
- ubuntu noble: unixodbc-common 2.3.12-1ubuntu0.24.04.1 Β· LGPL-2.1-or-later
- ubuntu questing: unixodbc-common 2.3.12-2ubuntu2 Β· LGPL-2.1-or-later
- ubuntu resolute: unixodbc-common 2.3.14-1 Β· LGPL-2.1-or-later
- ubuntu stonking: unixodbc-common 2.3.14-2 Β· LGPL-2.1-or-later
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms