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