Solved

Perl & Oracle: DynaLoader.pm

Posted on 2000-05-08
2
855 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
collecting information 2 184
problem with using the glob function 1 74
Perl string replace for refred url 9 65
Convert grep lines to perl 6 59
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…

820 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