[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">
|
---|
[c32e75e2] | 11 | <!ENTITY unixodbc-md5sum "06f76e034bb41df5233554abe961a16f">
|
---|
[7abed3b] | 12 | <!ENTITY unixodbc-size "1.6 MB">
|
---|
[053b384] | 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 | <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 |
|
---|
[66d551c] | 46 | &lfs101_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>
|
---|
[b7a85cd9] | 146 | <para>
|
---|
| 147 | <filename>/etc/unixODBC/*</filename>
|
---|
| 148 | </para>
|
---|
[b74eff5a] | 149 |
|
---|
[b7a85cd9] | 150 | <indexterm zone="unixodbc unixodbc-config">
|
---|
| 151 | <primary sortas="e-etc-unixODBC-">/etc/unixODBC/*</primary>
|
---|
| 152 | </indexterm>
|
---|
[b74eff5a] | 153 | </sect3>
|
---|
| 154 |
|
---|
| 155 | <sect3><title>Configuration Information</title>
|
---|
| 156 |
|
---|
[d78d84d] | 157 | <para>
|
---|
| 158 | The files in <filename class='directory'>/etc/unixODBC</filename>
|
---|
| 159 | are meant to be configured by the system administrator (or the ODBC site
|
---|
| 160 | administrator if appropriate privileges are granted to
|
---|
| 161 | <filename class='directory'>/etc/unixODBC</filename>). These files
|
---|
| 162 | are not meant to be directly edited. The ODBC installer library is
|
---|
| 163 | responsible for reading and writing the
|
---|
| 164 | <application>unixODBC</application> config files.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
[ff5109d] | 168 | Unfortunately, there are not many <command>man</command>, or any
|
---|
[d78d84d] | 169 | <command>info</command> pages for the various programs available in the
|
---|
| 170 | <application>unixODBC</application> package. Along with the information
|
---|
| 171 | in the <quote>Short Descriptions</quote> below and the documentation
|
---|
| 172 | installed in <filename
|
---|
| 173 | class='directory'>/usr/share/doc/unixODBC-&unixodbc-version;</filename>,
|
---|
| 174 | there are many <filename>README</filename> files throughout the source
|
---|
| 175 | tree where the use and functionality of the programs can be found.
|
---|
| 176 | Additionally, you can use the parameter <option>-?</option> for syntax
|
---|
| 177 | and usage information. Lastly, the <application>unixODBC</application>
|
---|
| 178 | web site at <ulink url="http://www.unixodbc.org/"/> has very good
|
---|
| 179 | information.
|
---|
| 180 | </para>
|
---|
[b74eff5a] | 181 |
|
---|
| 182 | </sect3>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Programs</segtitle>
|
---|
| 191 | <segtitle>Installed Libraries</segtitle>
|
---|
| 192 | <segtitle>Installed Directories</segtitle>
|
---|
| 193 |
|
---|
| 194 | <seglistitem>
|
---|
[d78d84d] | 195 | <seg>
|
---|
[d9121306] | 196 | dltest, isql, iusql, odbc_config, odbcinst, and slencheck
|
---|
[d78d84d] | 197 | </seg>
|
---|
| 198 | <seg>
|
---|
[d9121306] | 199 | libodbc.so, libodbccr.so, and libodbcinst.so
|
---|
[d78d84d] | 200 | </seg>
|
---|
| 201 | <seg>
|
---|
| 202 | /etc/unixODBC and
|
---|
| 203 | /usr/share/doc/unixODBC-&unixodbc-version;
|
---|
| 204 | </seg>
|
---|
[b74eff5a] | 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
| 207 |
|
---|
| 208 | <variablelist>
|
---|
| 209 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 210 | <?dbfo list-presentation="list"?>
|
---|
| 211 | <?dbhtml list-presentation="table"?>
|
---|
| 212 |
|
---|
| 213 | <varlistentry id="dltest">
|
---|
| 214 | <term><command>dltest</command></term>
|
---|
| 215 | <listitem>
|
---|
[d78d84d] | 216 | <para>
|
---|
[afd2e883] | 217 | is a utility used to check a shared library to see if it can be
|
---|
[4c24eb0a] | 218 | loaded and if a given symbol exists in it
|
---|
[d78d84d] | 219 | </para>
|
---|
[b74eff5a] | 220 | <indexterm zone="unixodbc dltest">
|
---|
| 221 | <primary sortas="b-dltest">dltest</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="isql">
|
---|
| 227 | <term><command>isql</command></term>
|
---|
| 228 | <listitem>
|
---|
[d78d84d] | 229 | <para>
|
---|
[73fe507] | 230 | is a utility which can be used to submit SQL to a data source and
|
---|
[d78d84d] | 231 | to format/output results. It can be used in batch or interactive
|
---|
[4c24eb0a] | 232 | mode
|
---|
[d78d84d] | 233 | </para>
|
---|
[b74eff5a] | 234 | <indexterm zone="unixodbc isql">
|
---|
| 235 | <primary sortas="b-isql">isql</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
| 239 |
|
---|
| 240 | <varlistentry id="iusql">
|
---|
| 241 | <term><command>iusql</command></term>
|
---|
| 242 | <listitem>
|
---|
[d78d84d] | 243 | <para>
|
---|
| 244 | provides the same functionality as the <command>isql</command>
|
---|
[4c24eb0a] | 245 | program
|
---|
[d78d84d] | 246 | </para>
|
---|
[b74eff5a] | 247 | <indexterm zone="unixodbc iusql">
|
---|
| 248 | <primary sortas="b-iusql">iusql</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="odbc_config">
|
---|
| 254 | <term><command>odbc_config</command></term>
|
---|
| 255 | <listitem>
|
---|
[d78d84d] | 256 | <para>
|
---|
| 257 | is used to find out details about the installation of
|
---|
[4c24eb0a] | 258 | the <application>unixODBC</application> package
|
---|
[d78d84d] | 259 | </para>
|
---|
[b74eff5a] | 260 | <indexterm zone="unixodbc odbc_config">
|
---|
| 261 | <primary sortas="b-odbc_config">odbc_config</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="odbcinst">
|
---|
| 267 | <term><command>odbcinst</command></term>
|
---|
| 268 | <listitem>
|
---|
[d78d84d] | 269 | <para>
|
---|
[73fe507] | 270 | is a utility created for install script/RPM writers. It is a
|
---|
[d78d84d] | 271 | command line interface to key functionality in the
|
---|
[4c24eb0a] | 272 | <filename class="libraryfile">libodbcinst</filename> library. It does
|
---|
[d78d84d] | 273 | not copy any files (i.e., libraries) but it will modify the ODBC
|
---|
[4c24eb0a] | 274 | System Information for the user
|
---|
[d78d84d] | 275 | </para>
|
---|
[b74eff5a] | 276 | <indexterm zone="unixodbc odbcinst">
|
---|
| 277 | <primary sortas="b-odbcinst">odbcinst</primary>
|
---|
| 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
[d78d84d] | 281 |
|
---|
[af5248e2] | 282 | <varlistentry id="slencheck">
|
---|
| 283 | <term><command>slencheck</command></term>
|
---|
| 284 | <listitem>
|
---|
| 285 | <para>
|
---|
[73fe507] | 286 | is a utility which attempts to check whether an ODBC driver
|
---|
[4c24eb0a] | 287 | was built with 32-bit or 64-bit SQLLEN types
|
---|
[af5248e2] | 288 | </para>
|
---|
| 289 | <indexterm zone="unixodbc slencheck">
|
---|
| 290 | <primary sortas="b-slencheck">slencheck</primary>
|
---|
| 291 | </indexterm>
|
---|
| 292 | </listitem>
|
---|
| 293 | </varlistentry>
|
---|
| 294 |
|
---|
| 295 |
|
---|
[b74eff5a] | 296 | </variablelist>
|
---|
| 297 |
|
---|
| 298 | </sect2>
|
---|
| 299 |
|
---|
| 300 | </sect1>
|
---|