Solved

Perl & Oracle: DynaLoader.pm

Posted on 2000-05-08
2
854 Views
Last Modified: 2008-03-17
I am working with Perl CGI, and I need to acceed to an Oracle database.
Actually, my scripts work when I execute them from a shell, but not via my WEB server:

>install_driver(Oracle) failed: Can't load >'/usr/local/depot/perl5.005_03/lib/site_perl/5.005>/sun4-solaris/auto/DBD/Oracle/Oracle.so' for >module DBD::Oracle: ld.so.1: /usr/local/bin/perl: >fatal: libclntsh.so.8.0: open failed: No such file or >directory at >/usr/local/depot/perl5.005_03/lib/5.00503/sun4->solaris/DynaLoader.pm line 169.

In my script, I have initialized the environment variables for Oracle. I don't understand why my server doesn't find these oracle libraries: they are there.

Did anybody have the same problem?

Thanks a lot for your answers, I really need some help.


0
Comment
Question by:vgadbin
2 Comments
 
LVL 12

Expert Comment

by:geotiger
ID: 2807455
How did you initializing env. var. for Oralce? Executing the script from a shell is different from browser because your web server may not have all the access that you have in the shell.
0
 

Accepted Solution

by:
webdba earned 75 total points
ID: 3781838
I had this problem just recently while installing DBD::Oracle.  The problem was a failed library from Sun's Freeware Perl.  Try building perl over again and reinstalling DBI and then DBD for oracle and this should correct THIS problem.  You should be able to find the perl binary you need from www.perl.com
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question