1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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 "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/unixODBC-&unixodbc-version;.tar.gz">
|
---|
9 | <!ENTITY unixodbc-md5sum "9ae806396844e38244cf65ad26ba0f23">
|
---|
10 | <!ENTITY unixodbc-size "2.4 MB">
|
---|
11 | <!ENTITY unixodbc-buildsize "82.5 MB">
|
---|
12 | <!ENTITY unixodbc-time "3.4 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 | <keywordset>
|
---|
22 | <keyword role="package">unixODBC-&unixodbc-version;.tar</keyword>
|
---|
23 | <keyword role="ftpdir">unixODBC</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>unixODBC-&unixodbc-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="unixodbc">
|
---|
30 | <primary sortas="a-unixODBC">unixODBC</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to unixODBC</title>
|
---|
35 |
|
---|
36 | <para>The <application>unixODBC</application> package is an Open Source
|
---|
37 | ODBC sub-system and an ODBC SDK for Linux, Mac OSX, and UNIX. ODBC is an
|
---|
38 | open specification for providing application developers with a predictable
|
---|
39 | API with which to access data sources. Data sources include SQL Servers and
|
---|
40 | any data source with an ODBC Driver. <application>unixODBC</application>
|
---|
41 | contains the following components used to assist with the manipulation of
|
---|
42 | ODBC data sources: a driver manager, an installer library and command line
|
---|
43 | tool, command line tools to help install a driver and work with SQL,
|
---|
44 | drivers and driver setup libraries and a suite of graphical tools used to
|
---|
45 | administer ODBC, test drivers and browse data sources.</para>
|
---|
46 |
|
---|
47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
48 | <itemizedlist spacing="compact">
|
---|
49 | <listitem>
|
---|
50 | <para>Download (HTTP): <ulink url="&unixodbc-download-http;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download (FTP): <ulink url="&unixodbc-download-ftp;"/></para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Download MD5 sum: &unixodbc-md5sum;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Download size: &unixodbc-size;</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>Estimated disk space required: &unixodbc-buildsize;</para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>Estimated build time: &unixodbc-time;</para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect3">unixODBC Dependencies</bridgehead>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
72 | <para role="optional"><xref linkend="qt"/> (required to build the GUI tools),
|
---|
73 | <ulink url="http://www.gnu.org/software/pth/">GNU Pth</ulink> and
|
---|
74 | <ulink url="http://www.hughes.com.au/products/msql/">Mini SQL</ulink></para>
|
---|
75 |
|
---|
76 | <note>
|
---|
77 | <para>There is a circular dependency with <application>Qt</application>
|
---|
78 | and <application>unixODBC</application>. If you need to build the
|
---|
79 | <application>Qt</application> <application>unixODBC</application>
|
---|
80 | plugin module, you will have to build and install
|
---|
81 | <application>unixODBC</application> once without the GUI tools to satisfy
|
---|
82 | the <application>Qt</application> build. Then, after
|
---|
83 | <application>Qt</application> has been installed, you'll need to build
|
---|
84 | and install <application>unixODBC</application> again if you wish to
|
---|
85 | build the GUI tools.</para>
|
---|
86 | </note>
|
---|
87 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of unixODBC</title>
|
---|
92 |
|
---|
93 | <para>Install <application>unixODBC</application> by running the following
|
---|
94 | commands:</para>
|
---|
95 |
|
---|
96 | <screen><userinput>sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
|
---|
97 | ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
|
---|
98 | --enable-ltdllib --enable-fdb --disable-gui &&
|
---|
99 | make</userinput></screen>
|
---|
100 |
|
---|
101 | <para>This package does not come with a test suite.</para>
|
---|
102 |
|
---|
103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
104 |
|
---|
105 | <screen role="root"><userinput>make install &&
|
---|
106 | find doc -name "Makefile*" -exec rm {} \; &&
|
---|
107 | chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
|
---|
108 | install -v -m755 -d /usr/share/doc/unixODBC-&unixodbc-version; &&
|
---|
109 | cp -v -R doc/* /usr/share/doc/unixODBC-&unixodbc-version;</userinput></screen>
|
---|
110 |
|
---|
111 | </sect2>
|
---|
112 |
|
---|
113 | <sect2 role="commands">
|
---|
114 | <title>Command Explanations</title>
|
---|
115 |
|
---|
116 | <para><command>sed -i "..." sqp/lex.l</command>: This fixes a build issue
|
---|
117 | if using a compiler version greater than
|
---|
118 | <application>GCC</application>-3.x.x.</para>
|
---|
119 |
|
---|
120 | <para><parameter>--enable-ltdllib</parameter>: This parameter causes the
|
---|
121 | build to use the system-installed version of
|
---|
122 | <application>Libtool</application>.</para>
|
---|
123 |
|
---|
124 | <para><parameter>--enable-fdb</parameter>: This parameter enables support
|
---|
125 | for file-based data access.</para>
|
---|
126 |
|
---|
127 | <para><parameter>--disable-gui</parameter>: This parameter disables
|
---|
128 | building the GUI tools. Remove it if you have
|
---|
129 | <application>Qt</application> installed and wish to build the GUI
|
---|
130 | tools.</para>
|
---|
131 |
|
---|
132 | </sect2>
|
---|
133 |
|
---|
134 | <sect2 role="configuration">
|
---|
135 | <title>Configuring unixODBC</title>
|
---|
136 |
|
---|
137 | <sect3 id="unixodbc-config">
|
---|
138 | <title>Config Files</title>
|
---|
139 | <para><filename>/etc/unixodbc/*</filename></para>
|
---|
140 |
|
---|
141 | <indexterm zone="unixodbc unixodbc-config">
|
---|
142 | <primary sortas="e-etc-unixodbc-">/etc/unixodbc/*</primary>
|
---|
143 | </indexterm>
|
---|
144 | </sect3>
|
---|
145 |
|
---|
146 | <sect3><title>Configuration Information</title>
|
---|
147 |
|
---|
148 | <para>The files in <filename class='directory'>/etc/unixodbc</filename>
|
---|
149 | are meant to be configured by the system administrator (or the ODBC site
|
---|
150 | administrator if appropriate privileges are granted to
|
---|
151 | <filename class='directory'>/etc/unixodbc</filename>). These files
|
---|
152 | are not meant to be directly edited. The ODBC installer library is
|
---|
153 | responsible for reading and writing the
|
---|
154 | <application>unixODBC</application> config files.</para>
|
---|
155 |
|
---|
156 | <para>Unfortunately, there are no <command>man</command> or
|
---|
157 | <command>info</command> pages for the various programs available in the
|
---|
158 | <application>unixODBC</application> package. Along with the information
|
---|
159 | in the <quote>Short Descriptions</quote> below and the documentation
|
---|
160 | installed in <filename
|
---|
161 | class='directory'>/usr/share/doc/unixODBC-&unixodbc-version;</filename>,
|
---|
162 | there are many <filename>README</filename> files thoughout the source
|
---|
163 | tree where the use and functionality of the programs can be found.
|
---|
164 | Additionally, you can use the parameter <option>-?</option> with the
|
---|
165 | non-GUI tools for syntax and usage information. Lastly, the
|
---|
166 | <application>unixODBC</application> web site at <ulink
|
---|
167 | url="http://www.unixodbc.org/"/> has very good information.</para>
|
---|
168 |
|
---|
169 | </sect3>
|
---|
170 |
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | <sect2 role="content">
|
---|
174 | <title>Contents</title>
|
---|
175 |
|
---|
176 | <segmentedlist>
|
---|
177 | <segtitle>Installed Programs</segtitle>
|
---|
178 | <segtitle>Installed Libraries</segtitle>
|
---|
179 | <segtitle>Installed Directories</segtitle>
|
---|
180 |
|
---|
181 | <seglistitem>
|
---|
182 | <seg>DataManager, DataManagerII, ODBCConfig, dltest, isql, iusql,
|
---|
183 | odbc_config, odbcinst and odbctest</seg>
|
---|
184 | <seg>libboundparam.so, libesoobS.so, libgtrtst.so, libmimerS.so,
|
---|
185 | libnn.so, libodbc.so, libodbccr.so, libodbcdrvcfg1S.so,
|
---|
186 | libodbcdrvcfg2S.so, libodbcinst.so, libodbcinstQ.so, libodbcminiS.so,
|
---|
187 | libodbcmyS.so, libodbcnnS.so, libodbcpsql.so, libodbcpsqlS.so,
|
---|
188 | libodbctxt.so, libodbctxtS.so, liboplodbcS.so, liboraodbcS.so,
|
---|
189 | libsapdbS.so, libtdsS.so and libtemplate.so</seg>
|
---|
190 | <seg>/etc/unixodbc and /usr/share/doc/unixODBC-&unixodbc-version;</seg>
|
---|
191 | </seglistitem>
|
---|
192 | </segmentedlist>
|
---|
193 |
|
---|
194 | <variablelist>
|
---|
195 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
196 | <?dbfo list-presentation="list"?>
|
---|
197 | <?dbhtml list-presentation="table"?>
|
---|
198 |
|
---|
199 | <varlistentry id="DataManager">
|
---|
200 | <term><command>DataManager</command></term>
|
---|
201 | <listitem>
|
---|
202 | <para>is a graphical program which can be used to browse/explore ODBC
|
---|
203 | data sources.</para>
|
---|
204 | <indexterm zone="unixodbc DataManager">
|
---|
205 | <primary sortas="b-DataManager">DataManager</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="DataManagerII">
|
---|
211 | <term><command>DataManagerII</command></term>
|
---|
212 | <listitem>
|
---|
213 | <para>is an enhanced version of <command>DataManager</command>.</para>
|
---|
214 | <indexterm zone="unixodbc DataManagerII">
|
---|
215 | <primary sortas="b-DataManagerII">DataManagerII</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | <varlistentry id="ODBCConfig">
|
---|
221 | <term><command>ODBCConfig</command></term>
|
---|
222 | <listitem>
|
---|
223 | <para>is a graphical program used to make configuration of ODBC data
|
---|
224 | sources extremely easy.</para>
|
---|
225 | <indexterm zone="unixodbc ODBCConfig">
|
---|
226 | <primary sortas="b-ODBCConfig">ODBCConfig</primary>
|
---|
227 | </indexterm>
|
---|
228 | </listitem>
|
---|
229 | </varlistentry>
|
---|
230 |
|
---|
231 | <varlistentry id="dltest">
|
---|
232 | <term><command>dltest</command></term>
|
---|
233 | <listitem>
|
---|
234 | <para>is a utility used to check a share library to see if it can be
|
---|
235 | loaded and if a given symbol exists in it.</para>
|
---|
236 | <indexterm zone="unixodbc dltest">
|
---|
237 | <primary sortas="b-dltest">dltest</primary>
|
---|
238 | </indexterm>
|
---|
239 | </listitem>
|
---|
240 | </varlistentry>
|
---|
241 |
|
---|
242 | <varlistentry id="isql">
|
---|
243 | <term><command>isql</command></term>
|
---|
244 | <listitem>
|
---|
245 | <para>is a utility which can be used to submit SQL to a data source
|
---|
246 | and to format/output results. It can be used in batch or interactive
|
---|
247 | mode.</para>
|
---|
248 | <indexterm zone="unixodbc isql">
|
---|
249 | <primary sortas="b-isql">isql</primary>
|
---|
250 | </indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | <varlistentry id="iusql">
|
---|
255 | <term><command>iusql</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>provides the same funtionality as the <command>isql</command>
|
---|
258 | program.</para>
|
---|
259 | <indexterm zone="unixodbc iusql">
|
---|
260 | <primary sortas="b-iusql">iusql</primary>
|
---|
261 | </indexterm>
|
---|
262 | </listitem>
|
---|
263 | </varlistentry>
|
---|
264 |
|
---|
265 | <varlistentry id="odbc_config">
|
---|
266 | <term><command>odbc_config</command></term>
|
---|
267 | <listitem>
|
---|
268 | <para>is used to find out details about the installation of
|
---|
269 | the <application>unixODBC</application> package.</para>
|
---|
270 | <indexterm zone="unixodbc odbc_config">
|
---|
271 | <primary sortas="b-odbc_config">odbc_config</primary>
|
---|
272 | </indexterm>
|
---|
273 | </listitem>
|
---|
274 | </varlistentry>
|
---|
275 |
|
---|
276 | <varlistentry id="odbcinst">
|
---|
277 | <term><command>odbcinst</command></term>
|
---|
278 | <listitem>
|
---|
279 | <para> is a utility created for install script/RPM writers. It is a
|
---|
280 | command line interface to key functionality in the
|
---|
281 | <filename class='libraryfile'>libodbcinst</filename> library. It does
|
---|
282 | not copy any files (i.e., libraries) but it will modify the ODBC
|
---|
283 | System Information for the user.</para>
|
---|
284 | <indexterm zone="unixodbc odbcinst">
|
---|
285 | <primary sortas="b-odbcinst">odbcinst</primary>
|
---|
286 | </indexterm>
|
---|
287 | </listitem>
|
---|
288 | </varlistentry>
|
---|
289 |
|
---|
290 | <varlistentry id="odbctest">
|
---|
291 | <term><command>odbctest</command></term>
|
---|
292 | <listitem>
|
---|
293 | <para>is a graphical program used to test the ODBC API.</para>
|
---|
294 | <indexterm zone="unixodbc odbctest">
|
---|
295 | <primary sortas="b-odbctest">odbctest</primary>
|
---|
296 | </indexterm>
|
---|
297 | </listitem>
|
---|
298 | </varlistentry>
|
---|
299 |
|
---|
300 | </variablelist>
|
---|
301 |
|
---|
302 | </sect2>
|
---|
303 |
|
---|
304 | </sect1>
|
---|