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