Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > The Dungeon > Archived (Click Header To See Sub-Forums) > Alpha, Beta & Snapshots Discussions (Fedora 11 Only)
FedoraForum Search

Forgot Password? Join Us!

Alpha, Beta & Snapshots Discussions (Fedora 11 Only) Post Development Version comments and questions that don't belong in Bugzilla here. These posts will be moved or deleted once the Final version is released

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th April 2009, 05:36 PM
drimtajm Offline
Registered User
 
Join Date: Apr 2009
Location: Mantorp, Sweden
Posts: 6
Question unixODBC-2.2.14-2 on a 64-bit architecture?

Hi guys and girls!

I'm wondering if anyone has successfully used the latest unixODBC package (version 2.2.14-2) on a 64-bit architecture?

I am having trouble with my drivers - the driver manager cannot seem to find them (and yes, I have checked that the lib is there, non-empty and a 64-bit lib) :

[oracle@vierstein ~]$ isql -v OracleODBC-11g
[01000][unixODBC][Driver Manager]Can't open lib
'/usr/local/share/oracle/11g/lib/libsqora.so.11.1' : file not found
[ISQL]ERROR: Could not SQLConnect


Why do I get this error message when I know the file exists?

I am pretty sure my configuration is correct, after some difficulties I have managed to install and start Oracle Database 11g, although the installation program complained about some i386 packages that it couldn't find since I only had found i586 and i686 versions in the F11 repositories. Quick question about this: What is the difference (from Oracle's point of view) between i586 and i686 packages vs i386 packages? They still contain 32-bit libraries, right? And if all dependencies are satisfied, it should work.

Anyway, I have created a new database and I am able to connect to it via sqlplus. I'm not trying to do anything over a network or something, the only thing that could mess things up is that I'm running the 64-bit version of Fedora. I have tried the 32-bit versions of unixODBC + driver but I get the same result. I also tried copying the driver lib to /usr/lib64 and /usr/lib. Furthermore, I tested with a different driver (from easysoft). Still, same result.

So, I'm simply trying to find out if there is something weird with the unixODBC package for F11 preview or if it's just me before reporting any bug.

Last edited by drimtajm; 29th April 2009 at 05:39 PM.
  #2  
Old 29th April 2009, 07:22 PM
MetaCarpal Offline
Registered User
 
Join Date: Jul 2008
Posts: 26
Have you set the LD_LIBRARY_PATH variable?

Try this:

Code:
export LD_LIBRARY_PATH=/usr/local/share/oracle/11g/lib:/lib64:/usr/lib64:/lib:/usr/lib:$LD_LIBRARY_PATH

Also, did you install the 64-bit oracle package, or the 32-bit? If the 32-bit, you will need the iX86 package (which one makes no difference, i586 should do nicely)

Last edited by MetaCarpal; 29th April 2009 at 07:24 PM. Reason: Added question about Oracle arch
  #3  
Old 29th April 2009, 07:59 PM
drimtajm Offline
Registered User
 
Join Date: Apr 2009
Location: Mantorp, Sweden
Posts: 6
Smile Problem "solved!

Thanks for the suggestion, but I didn't need to set the LD_LIBRARY_PATH since my odbcinst.ini contained the full path to the driver.
Also, when I had downloaded the 32-bit Oracle by mistake, I couldn't install it. (The 64-bit version still requires som 32-bit libs though and comes with a 32-bit odbc driver.)

I have actually found the cause of the problem now (thanks to Nick Gorham who taught me that there's a nifty command called ldd ) : The library libodbcinst.so.1 is missing!

So I guess this is a bug in F11 preview...
  #4  
Old 29th April 2009, 09:58 PM
MetaCarpal Offline
Registered User
 
Join Date: Jul 2008
Posts: 26
libodbcinst.so.1 is provided by the Oracle Instant Client package/installation. It's not a native Fedora lib.
  #5  
Old 29th April 2009, 10:08 PM
drimtajm Offline
Registered User
 
Join Date: Apr 2009
Location: Mantorp, Sweden
Posts: 6
Ok, I will check if I can get hold of that library. It WAS part of the unixODBC package in Fedora 10 but apparently it has been replaced by libodbcinst.so.2 so there seems to be a mismatch between the current driver manager and the current drivers (which are not supplied by Fedora unfortunately).
I guess I'm paying the price for wanting to have the latest software...
So if I cannot find a working libodbcinst.so.1, my best option is to downgrade unixODBC until there is a better driver available.
  #6  
Old 29th April 2009, 10:33 PM
drimtajm Offline
Registered User
 
Join Date: Apr 2009
Location: Mantorp, Sweden
Posts: 6
Wink A soft link did the trick

It works now!
What I did: Created a link libodbcinst.so.1 in /usr/lib64 pointing to libodbcinst.so.2

I know, VERY ugly, but if Oracle's software can't keep up with Rawhide, I guess a few tricks are allowed to make things work.
The documentation in the odbc directory was actually from their old database version (10g) !

As long as my setup works, I'm happy.
  #7  
Old 29th April 2009, 10:41 PM
drimtajm Offline
Registered User
 
Join Date: Apr 2009
Location: Mantorp, Sweden
Posts: 6
It seems I spoke too soon...
I can connect to the database now, but not use it.
So I will probably downgrade unixODBC.
 

Tags
64-bit, odbc, oracle 11g, unixodbc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unixODBC, php, and oracle mdulzo Guides & Solutions (No Questions) 0 14th August 2009 05:23 AM
isql unixODBC postgresql fc5pjs Using Fedora 0 31st March 2007 06:20 PM
unixODBC and MySQL chriscowley Using Fedora 4 3rd July 2006 06:32 PM
unixODBC help please :) hiberphoptik Using Fedora 4 1st February 2005 01:13 AM
unixODBC Problems BinWalid Servers & Networking 2 5th August 2004 12:11 AM


Current GMT-time: 09:47 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat