The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Connecting to DB2 database on Mainframe and Querying DB developncode UNIX for Advanced & Expert Users 2 05-05-2008 08:01 PM
Connecting and Querying DB2 database from Unix Script? developncode Shell Programming and Scripting 2 05-02-2008 09:47 AM
Connecting to Oracle Database dreams5617 Shell Programming and Scripting 4 05-02-2008 09:37 AM
connecting to a database through a script...if not give an error msg sommer_queen UNIX for Dummies Questions & Answers 3 08-22-2007 10:09 AM
Connecting to a database via UNIX penfold UNIX for Advanced & Expert Users 1 03-05-2005 11:37 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-17-2007
Registered User
 

Join Date: Dec 2006
Posts: 131
Post error connecting database from perl

Hi,

While i am trying to connect to Oracle database from Perl using DBI module,am getting the error as follows :

Can't load '/usr/local/fuseperl-modules/lib/i586-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libwtc9.so: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i586-linux-thread-multi/DynaLoader.pm line 229.

I am confident in the case that the driver DBD::Oracle was installed.

Can anyone suggest,what is happening and why?

With Regards
Dileep Pattayath
Reply With Quote
Forum Sponsor
  #2  
Old 09-17-2007
Registered User
 

Join Date: Sep 2007
Posts: 55
Try This

#echo $ORACLE_HOME/lib >> /etc/ld.so.conf
# ldconfig
Reply With Quote
  #3  
Old 09-17-2007
Registered User
 

Join Date: Dec 2006
Posts: 131
Quote:
Originally Posted by SanjayLinux View Post
Try This

#echo $ORACLE_HOME/lib >> /etc/ld.so.conf
# ldconfig
Thanks for your reply

But i don't have write access to this directory /etc.Can you suggest anything to be done from the user end.

Anyway what the above code will represent?

With Regards
Dileep Pattayath
Reply With Quote
  #4  
Old 09-17-2007
Registered User
 

Join Date: Sep 2007
Posts: 55
Wink

Dileep,
It seems to me some problem with Perl module that properly not installed or might be the lib path (xxxx.so) files in different location.

So why I asked for
#echo $ORACLE_HOME/lib >> /etc/ld.so.conf

Here it will put all the .so files with in /etc/ld.so.conf files.

# ldconfig

After executing the above command it will get affect mean to say it will read all these .so files location.

One suggestion you can verify whether that files (.pm) is existing or not
"/usr/lib/perl5/5.8.0/i586-linux-thread-multi/DynaLoader.pm "

## find / -name DynaLoader.pm

Then compare the location .. If it is not there that mean Your driver DBD perl module didn't compile properly.

~~~Sanjay~~~
Reply With Quote
  #5  
Old 09-17-2007
Registered User
 

Join Date: Dec 2006
Posts: 131
Post

ok,fine.Thank you.

The problem was solved now.I set the environment variable LD_LIBRARY_PATH="$ORACLE_HOME/lib".I think this was the same idea you gaven.Now it's working fine.

Thanks for your time and effort

With Regards
Dileep Pattayath
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0