1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
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">
|
---|
8 | <!ENTITY unixodbc-download-ftp "&gentoo-ftp-repo;/unixODBC-&unixodbc-version;.tar.gz">
|
---|
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)">
|
---|
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
|
---|
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
|
---|
36 | sources include optional SQL Servers and any data source with an ODBC Driver.
|
---|
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
|
---|
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>
|
---|
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>
|
---|
75 | <para role="optional"><xref linkend="pth"/> and
|
---|
76 | <ulink url="http://www.hughes.com.au/products/msql/">Mini SQL</ulink></para>
|
---|
77 |
|
---|
78 | <para condition="html" role="usernotes">User Notes:
|
---|
79 | <ulink url="&blfs-wiki;/unixodbc"/></para>
|
---|
80 |
|
---|
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 |
|
---|
89 | <screen><userinput>./configure --prefix=/usr \
|
---|
90 | --sysconfdir=/etc/unixodbc &&
|
---|
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 &&
|
---|
98 |
|
---|
99 | find doc -name "Makefile*" -exec rm {} \; &&
|
---|
100 | chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
|
---|
101 |
|
---|
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 |
|
---|
110 | <para><option>--enable-drivers</option>: This parameter enables building
|
---|
111 | the drivers that were installed by default in previous versions.</para>
|
---|
112 |
|
---|
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>
|
---|
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 |
|
---|
141 | <para>Unfortunately, there are no <command>man</command> or
|
---|
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>,
|
---|
147 | there are many <filename>README</filename> files throughout the source
|
---|
148 | tree where the use and functionality of the programs can be found.
|
---|
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>
|
---|
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>
|
---|
167 | <seg>dltest, isql, iusql, odbc_config, and odbcinst</seg>
|
---|
168 | <seg>libodbc.so, libodbccr.so, and libodbcinst.so</seg>
|
---|
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>
|
---|
204 | <para>provides the same functionality as the <command>isql</command>
|
---|
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>
|
---|