1odbc.ini(5) unixODBC manual pages odbc.ini(5)
2
3
4
6 /etc/odbc.ini, $HOME/.odbc.ini - unixODBC data sources configuration
7
8
10 /etc/odbc.ini is text configuration file for the system wide ODBC data
11 sources (i. e. database connections). $HOME/.odbc.ini contains the
12 configuration for user-specific data sources. Both paths may be over‐
13 ridden by unixODBC build options, see odbcinst -j for the definitive
14 paths on your system.
15
16
18 Templates
19 Where possible, install ODBC DSNs using the odbcinst utility from a
20 template .ini file. Many drivers supply templates.
21
22
23 FILE FORMAT
24 odbc.ini follows the pesudo-standard ini file syntax convention of one
25 or more [section headings], each followed by zero or more key = value
26 attributes.
27
28
29 [ODBC Data Sources] section
30
31 The required section [ODBC Data Sources] lists each data source
32 name (DSN) as a key. The associated values serve as comments. Each
33 entry must be matched by an ini file [section] describing the data
34 source.
35
36
37 [dsn] sections
38
39 Each data source is identified by a [section header], which is the
40 DSN name used by applications. Each DSN definition section may con‐
41 tain values for the keys:
42
43
44 · Driver (REQUIRED)
45 Name of the ODBC driver to use for this DSN. The name must
46 exactly match the [section name] of the driver definition
47 in odbcinst.ini as listed by odbcinst -q -d.
48
49
50 · Description
51
52 Human-readable data source description.
53
54
55 · Database
56
57 Database name or identifier. Meaning is driver-specific.
58 May specify a file path, unix socket path, identifier rela‐
59 tive to a server name, etc.
60
61
62 · Servername
63
64 Server name. Meaning is driver specific, but generally
65 specifies a DNS name, IP network address, or driver-spe‐
66 cific discovery identifier.
67
68 For a full list of supported parameters see the HTML-format "Adminis‐
69 trator Manual" shipped with unixODBC, the documentation for your
70 driver, and any datasource templates supplied by your driver.
71
72
74 An example odbc.init is shown in the "Administrator Manual" shipped
75 with unixODBC.
76
77
79 unixODBC(7), odbcinst(1), isql(1), iusql(1), odbcinst.ini(5)
80
81 The unixODBC Administrator Manual (HTML)
82
83
85 The authors of unixODBC are Peter Harvey <pharvey@codebydesign.com> and
86 Nick Gorham <nick@lurcher.org>. For the full list of contributors see
87 the AUTHORS file.
88
89
91 unixODBC is licensed under the GNU Lesser General Public License. For
92 details about the license, see the COPYING file.
93
94
95
96version 2.3.6 Thu 27 Jun 2013 odbc.ini(5)