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