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