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