[b74eff5a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b74eff5a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d9ff8eba] | 7 | <!ENTITY unixodbc-download-http "https://github.com/lurcher/unixODBC/releases/download/&unixodbc-version;/unixODBC-&unixodbc-version;.tar.gz">
|
---|
[e1e58be] | 8 | <!ENTITY unixodbc-download-ftp " ">
|
---|
[4757ef5d] | 9 | <!ENTITY unixodbc-md5sum "d62167d85bcb459c200c0e4b5a63ee48">
|
---|
[bbf24398] | 10 | <!ENTITY unixodbc-size "1.7 MB">
|
---|
[e9c7577] | 11 | <!ENTITY unixodbc-buildsize "28 MB">
|
---|
[7ac67fc] | 12 | <!ENTITY unixodbc-time "0.2 SBU (using parallelism=4)">
|
---|
[b74eff5a] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="unixodbc" xreflabel="unixODBC-&unixodbc-version;">
|
---|
| 16 | <?dbhtml filename="unixodbc.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>unixODBC-&unixodbc-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="unixodbc">
|
---|
| 22 | <primary sortas="a-unixODBC">unixODBC</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to unixODBC</title>
|
---|
| 27 |
|
---|
[d78d84d] | 28 | <para>
|
---|
| 29 | The <application>unixODBC</application> package is an Open Source
|
---|
| 30 | ODBC (Open DataBase Connectivity) sub-system and an ODBC SDK for Linux, Mac
|
---|
| 31 | OSX, and UNIX. ODBC is an open specification for providing application
|
---|
| 32 | developers with a predictable API with which to access data sources. Data
|
---|
| 33 | sources include optional SQL Servers and any data source with an ODBC Driver.
|
---|
| 34 | <application>unixODBC</application> contains the following components used
|
---|
| 35 | to assist with the manipulation of ODBC data sources: a driver manager, an
|
---|
| 36 | installer library and command line tool, command line tools to help install
|
---|
| 37 | a driver and work with SQL, drivers and driver setup libraries.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[c8b719a] | 40 | &lfs120_checked;
|
---|
[b74eff5a] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[d78d84d] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&unixodbc-download-http;"/>
|
---|
| 47 | </para>
|
---|
[b74eff5a] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[d78d84d] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&unixodbc-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[b74eff5a] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[d78d84d] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &unixodbc-md5sum;
|
---|
| 57 | </para>
|
---|
[b74eff5a] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[d78d84d] | 60 | <para>
|
---|
| 61 | Download size: &unixodbc-size;
|
---|
| 62 | </para>
|
---|
[b74eff5a] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[d78d84d] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &unixodbc-buildsize;
|
---|
| 67 | </para>
|
---|
[b74eff5a] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[d78d84d] | 70 | <para>
|
---|
| 71 | Estimated build time: &unixodbc-time;
|
---|
| 72 | </para>
|
---|
[b74eff5a] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">unixODBC Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d78d84d] | 79 | <para role="optional">
|
---|
[b3d0dbd] | 80 | <ulink url="https://hughestech.com.au/products/msql/">Mini SQL</ulink> and
|
---|
[d78d84d] | 81 | <xref linkend="pth"/>
|
---|
| 82 | </para>
|
---|
[b74eff5a] | 83 |
|
---|
| 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of unixODBC</title>
|
---|
| 88 |
|
---|
[d78d84d] | 89 | <para>
|
---|
| 90 | Install <application>unixODBC</application> by running the following
|
---|
| 91 | commands:
|
---|
| 92 | </para>
|
---|
[b74eff5a] | 93 |
|
---|
[63bb3941] | 94 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d78d84d] | 95 | --sysconfdir=/etc/unixODBC &&
|
---|
[b74eff5a] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
[d78d84d] | 98 | <para>
|
---|
| 99 | This package does not come with a test suite.
|
---|
| 100 | </para>
|
---|
[b74eff5a] | 101 |
|
---|
[d78d84d] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[b74eff5a] | 105 |
|
---|
| 106 | <screen role="root"><userinput>make install &&
|
---|
[63bb3941] | 107 |
|
---|
[252e5bf] | 108 | find doc -name "Makefile*" -delete &&
|
---|
| 109 | chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
|
---|
[63bb3941] | 110 |
|
---|
[b74eff5a] | 111 | install -v -m755 -d /usr/share/doc/unixODBC-&unixodbc-version; &&
|
---|
[066dad5a] | 112 | cp -v -R doc/* /usr/share/doc/unixODBC-&unixodbc-version;</userinput></screen>
|
---|
[b74eff5a] | 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
| 118 |
|
---|
[d78d84d] | 119 | <para>
|
---|
| 120 | <option>--enable-drivers</option>: This parameter enables building
|
---|
| 121 | the drivers that were installed by default in previous versions.
|
---|
| 122 | </para>
|
---|
[b74eff5a] | 123 |
|
---|
[d78d84d] | 124 | <para>
|
---|
| 125 | <option>--enable-drivers-conf</option>: This parameter enables
|
---|
[0d7900a] | 126 | building the driver configuration libraries that were installed
|
---|
[d78d84d] | 127 | by default in previous versions.
|
---|
| 128 | </para>
|
---|
[b74eff5a] | 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
| 132 | <sect2 role="configuration">
|
---|
| 133 | <title>Configuring unixODBC</title>
|
---|
| 134 |
|
---|
| 135 | <sect3 id="unixodbc-config">
|
---|
| 136 | <title>Config Files</title>
|
---|
[b7a85cd9] | 137 | <para>
|
---|
| 138 | <filename>/etc/unixODBC/*</filename>
|
---|
| 139 | </para>
|
---|
[b74eff5a] | 140 |
|
---|
[b7a85cd9] | 141 | <indexterm zone="unixodbc unixodbc-config">
|
---|
| 142 | <primary sortas="e-etc-unixODBC-">/etc/unixODBC/*</primary>
|
---|
| 143 | </indexterm>
|
---|
[b74eff5a] | 144 | </sect3>
|
---|
| 145 |
|
---|
| 146 | <sect3><title>Configuration Information</title>
|
---|
| 147 |
|
---|
[d78d84d] | 148 | <para>
|
---|
| 149 | The files in <filename class='directory'>/etc/unixODBC</filename>
|
---|
| 150 | are meant to be configured by the system administrator (or the ODBC site
|
---|
| 151 | administrator if appropriate privileges are granted to
|
---|
| 152 | <filename class='directory'>/etc/unixODBC</filename>). These files
|
---|
| 153 | are not meant to be directly edited. The ODBC installer library is
|
---|
| 154 | responsible for reading and writing the
|
---|
| 155 | <application>unixODBC</application> config files.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <para>
|
---|
[ff5109d] | 159 | Unfortunately, there are not many <command>man</command>, or any
|
---|
[d78d84d] | 160 | <command>info</command> pages for the various programs available in the
|
---|
| 161 | <application>unixODBC</application> package. Along with the information
|
---|
| 162 | in the <quote>Short Descriptions</quote> below and the documentation
|
---|
| 163 | installed in <filename
|
---|
| 164 | class='directory'>/usr/share/doc/unixODBC-&unixodbc-version;</filename>,
|
---|
| 165 | there are many <filename>README</filename> files throughout the source
|
---|
| 166 | tree where the use and functionality of the programs can be found.
|
---|
| 167 | Additionally, you can use the parameter <option>-?</option> for syntax
|
---|
| 168 | and usage information. Lastly, the <application>unixODBC</application>
|
---|
| 169 | web site at <ulink url="http://www.unixodbc.org/"/> has very good
|
---|
| 170 | information.
|
---|
| 171 | </para>
|
---|
[b74eff5a] | 172 |
|
---|
| 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | </sect2>
|
---|
| 176 |
|
---|
| 177 | <sect2 role="content">
|
---|
| 178 | <title>Contents</title>
|
---|
| 179 |
|
---|
| 180 | <segmentedlist>
|
---|
| 181 | <segtitle>Installed Programs</segtitle>
|
---|
| 182 | <segtitle>Installed Libraries</segtitle>
|
---|
| 183 | <segtitle>Installed Directories</segtitle>
|
---|
| 184 |
|
---|
| 185 | <seglistitem>
|
---|
[d78d84d] | 186 | <seg>
|
---|
[d9121306] | 187 | dltest, isql, iusql, odbc_config, odbcinst, and slencheck
|
---|
[d78d84d] | 188 | </seg>
|
---|
| 189 | <seg>
|
---|
[d9121306] | 190 | libodbc.so, libodbccr.so, and libodbcinst.so
|
---|
[d78d84d] | 191 | </seg>
|
---|
| 192 | <seg>
|
---|
| 193 | /etc/unixODBC and
|
---|
| 194 | /usr/share/doc/unixODBC-&unixodbc-version;
|
---|
| 195 | </seg>
|
---|
[b74eff5a] | 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
| 198 |
|
---|
| 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="dltest">
|
---|
| 205 | <term><command>dltest</command></term>
|
---|
| 206 | <listitem>
|
---|
[d78d84d] | 207 | <para>
|
---|
[afd2e883] | 208 | is a utility used to check a shared library to see if it can be
|
---|
[4c24eb0a] | 209 | loaded and if a given symbol exists in it
|
---|
[d78d84d] | 210 | </para>
|
---|
[b74eff5a] | 211 | <indexterm zone="unixodbc dltest">
|
---|
| 212 | <primary sortas="b-dltest">dltest</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="isql">
|
---|
| 218 | <term><command>isql</command></term>
|
---|
| 219 | <listitem>
|
---|
[d78d84d] | 220 | <para>
|
---|
[73fe507] | 221 | is a utility which can be used to submit SQL to a data source and
|
---|
[d78d84d] | 222 | to format/output results. It can be used in batch or interactive
|
---|
[4c24eb0a] | 223 | mode
|
---|
[d78d84d] | 224 | </para>
|
---|
[b74eff5a] | 225 | <indexterm zone="unixodbc isql">
|
---|
| 226 | <primary sortas="b-isql">isql</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="iusql">
|
---|
| 232 | <term><command>iusql</command></term>
|
---|
| 233 | <listitem>
|
---|
[d78d84d] | 234 | <para>
|
---|
| 235 | provides the same functionality as the <command>isql</command>
|
---|
[4c24eb0a] | 236 | program
|
---|
[d78d84d] | 237 | </para>
|
---|
[b74eff5a] | 238 | <indexterm zone="unixodbc iusql">
|
---|
| 239 | <primary sortas="b-iusql">iusql</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="odbc_config">
|
---|
| 245 | <term><command>odbc_config</command></term>
|
---|
| 246 | <listitem>
|
---|
[d78d84d] | 247 | <para>
|
---|
| 248 | is used to find out details about the installation of
|
---|
[4c24eb0a] | 249 | the <application>unixODBC</application> package
|
---|
[d78d84d] | 250 | </para>
|
---|
[b74eff5a] | 251 | <indexterm zone="unixodbc odbc_config">
|
---|
| 252 | <primary sortas="b-odbc_config">odbc_config</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="odbcinst">
|
---|
| 258 | <term><command>odbcinst</command></term>
|
---|
| 259 | <listitem>
|
---|
[d78d84d] | 260 | <para>
|
---|
[73fe507] | 261 | is a utility created for install script/RPM writers. It is a
|
---|
[d78d84d] | 262 | command line interface to key functionality in the
|
---|
[4c24eb0a] | 263 | <filename class="libraryfile">libodbcinst</filename> library. It does
|
---|
[d78d84d] | 264 | not copy any files (i.e., libraries) but it will modify the ODBC
|
---|
[4c24eb0a] | 265 | System Information for the user
|
---|
[d78d84d] | 266 | </para>
|
---|
[b74eff5a] | 267 | <indexterm zone="unixodbc odbcinst">
|
---|
| 268 | <primary sortas="b-odbcinst">odbcinst</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
[d78d84d] | 272 |
|
---|
[af5248e2] | 273 | <varlistentry id="slencheck">
|
---|
| 274 | <term><command>slencheck</command></term>
|
---|
| 275 | <listitem>
|
---|
| 276 | <para>
|
---|
[73fe507] | 277 | is a utility which attempts to check whether an ODBC driver
|
---|
[4c24eb0a] | 278 | was built with 32-bit or 64-bit SQLLEN types
|
---|
[af5248e2] | 279 | </para>
|
---|
| 280 | <indexterm zone="unixodbc slencheck">
|
---|
| 281 | <primary sortas="b-slencheck">slencheck</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 |
|
---|
[b74eff5a] | 287 | </variablelist>
|
---|
| 288 |
|
---|
| 289 | </sect2>
|
---|
| 290 |
|
---|
| 291 | </sect1>
|
---|