69 lines
3.0 KiB
HTML
69 lines
3.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>Tango 2000 HOWTO: TAS and Oracle</TITLE>
|
|
<LINK HREF="Tango-HOWTO-7.html" REL=next>
|
|
<LINK HREF="Tango-HOWTO-5.html" REL=previous>
|
|
<LINK HREF="Tango-HOWTO.html#toc6" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Tango-HOWTO-7.html">Next</A>
|
|
<A HREF="Tango-HOWTO-5.html">Previous</A>
|
|
<A HREF="Tango-HOWTO.html#toc6">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s6">6. TAS and Oracle</A></H2>
|
|
|
|
<P>
|
|
<H2><A NAME="ss6.1">6.1 Oracle Support</A>
|
|
</H2>
|
|
|
|
<P>
|
|
<P>Tango 3.x for Solaris does not have native Oracle support. Tango 2000 for
|
|
Solaris supports Oracle 8 and 8i, and generally works with Oracle 7.3.4 and
|
|
above. Tango 2000 Service Pack 1 was not tested with Oracle 7.x however, and
|
|
there have been reports of problems. The Oracle 8 client can connect quite
|
|
happily to the Oracle 7 server, however, so that is an option.
|
|
<P>To use Oracle with Tango, first you require the Oracle Client to be correctly
|
|
installed on the machine. Generally, a good way to check for this is to:
|
|
<UL>
|
|
<LI>check to see if there is an 'oracle' account on the machine</LI>
|
|
<LI>try to run the Oracle program 'sqlplus'</LI>
|
|
</UL>
|
|
<P>If you can successfully run sqlplus, you should be fine. If not, well,
|
|
go install Oracle.
|
|
<P>Next, you need to make sure that the client has the appropriate entries
|
|
for the datasource in question to your TNS service; generally a tnsnames.ora
|
|
file. You accomplish this with your Oracle software; there are programs such
|
|
as net8config and what not that do it for you. The thing to remember here is
|
|
that the name of the datasource needs to be the same as the name of the datasource
|
|
you're using in Tango.
|
|
<P>Finally, to allow Tango to use the Oracle software, you need to add this
|
|
path to the LD_LIBRARY_PATH environment variable of the tango user account.
|
|
<HR>
|
|
<PRE>
|
|
$ORACLE_HOME/lib
|
|
</PRE>
|
|
<HR>
|
|
<P>You'll also need to define what $ORACLE_HOME is; this, of course,
|
|
is the root directory of Oracle, and will be some forboding path such as, for
|
|
example, /u01/software/products/8.1.5/oracle or something similar.
|
|
<P>If you're using Oracle 7.x or 8.0.x you'll probably need to create a new
|
|
client library. Instructions for this are in $TANGO_HOME/odbc/src/oracle
|
|
in the readme.ora file. You can check to see if you require this patch by attempting
|
|
to load the Oracle ODBC driver (see section 6). If it fails with an 'unresolved
|
|
symbol' error, then you need the patch.
|
|
<P>As the readme file says, this newly created library must appear in your
|
|
LD_LIBRARY_PATH before the reference to $ORACLE_HOME/lib does. If there
|
|
are no other programs running, it's generally easiest to replace the old library
|
|
with the new.
|
|
<P>Some shells seem to have trouble with the LD_LIBRARY_PATH ordering; I've
|
|
seen ksh fail to correctly load the new library, and switching to sh or bash
|
|
solve it.
|
|
<HR>
|
|
<A HREF="Tango-HOWTO-7.html">Next</A>
|
|
<A HREF="Tango-HOWTO-5.html">Previous</A>
|
|
<A HREF="Tango-HOWTO.html#toc6">Contents</A>
|
|
</BODY>
|
|
</HTML>
|