[unixODBC-support] unixODBC can't find Oracle 11 ODBC Driver file, even though it exists (Solaris 10 x86 )

Jeff Martin JMartin at telecomsys.com
Tue Jul 26 02:10:09 BST 2011



Dang,  I should have thought of ldd.  Yes, ldd shows that
libsqora.so.11.1 needs libclntsh.so.11.1, which is also part of the
Oracle "instant client" package.  I forgot to update my $LD_LIBRARY_PATH
to include the dir that has all the .so.  With my $LD_LIBRARY_PATH
updated, unixODBC successfully loads the driver, and connects.


Thanks for the quick response.


-- Jeff



From: unixodbc-support-bounces at mailman.unixodbc.org
[mailto:unixodbc-support-bounces at mailman.unixodbc.org] On Behalf Of Nick
Sent: Monday, July 25, 2011 6:56 PM
To: Support for the unixODBC project
Subject: Re: [unixODBC-support] unixODBC can't find Oracle 11 ODBC
Driver file, even though it exists (Solaris 10 x86 )


On 26/07/2011 01:32, Jeff Martin wrote: 


We are trying to use unixODBC on Solaris 10 x86 with 32-bit Oracle 11
"instant client drivers".  We downloaded unixODBC 2.3.0 sources and
compiled on a Solaris 10 x86 box.  We downloaded the Oracle
"instant client drivers" for 32-bit Solaris 10 x86, from
http://www.oracle.com/technetwork/topics/solx86soft-092689.html.  When I
try to run isql, the driver manager errors with "file not found" for the
Oracle ODBC driver, even though that file exists:



#---- begin example


% cat $HOME/.odbc.ini


Driver =

ServerName = oradb1:1521/Orcl


% ls -l

-rwxrwxr-x   1 jmartin  developr  748520 Sep 13  2010


% isql -v ora11

[01000][unixODBC][Driver Manager]Can't open lib
'/export/home/jmartin/oracle-InstantClient-' :
file not found

[ISQL]ERROR: Could not SQLConnect


#---- end example



Why does unixODBC driver manager complain "file not found" for a file
that clearly exists?  I turned on tracing for unixODBC, but it doesn't
shed any more light.  I've attached the complete trace output as
unixodbc.trace.  The relevant part is:


Most likely its missing a file that the driver needs.


ldd /export/home/jmartin/oracle-InstantClient-

And see if there is anything missing.











CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20110725/37775423/attachment-0001.html>

More information about the unixODBC-support mailing list