- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Perl with Oracle Connection through Apache
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 12:16 AM
тАО11-12-2009 12:16 AM
The script is executing from command prompt.
I have set export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ROACLE_HOME/lib32:$ORACLE_HOME/lib64 also.
But not executing through browser.
it says the following error.
Can't load '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
Could any one answer for this question. it is very urgent and critical.
Regards
Krishna
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 12:38 AM
тАО11-12-2009 12:38 AM
Re: Perl with Oracle Connection through Apache
ldd oracle.so should give you a list of all libraries linked to it. All of those libraries must be available or else you would end with a "cannot open shared object file" error.
So you would also need to add those paths to the library path.
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 12:56 AM
тАО11-12-2009 12:56 AM
Re: Perl with Oracle Connection through Apache
Could you please provide me the examples for the LIBRAYR PATH and shared library path.
Regards
Krishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 01:41 AM
тАО11-12-2009 01:41 AM
Re: Perl with Oracle Connection through Apache
/opt/hpws/apache/stunnel/lib/stunnel.so
[hpux]:/root # ldd /opt/hpws/apache/stunnel/lib/stunnel.so
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
[hpux]:/root #
This is a simple case, showing that you should consider adding also to the LD_LIBRARY_PATH the /usr/lib path.
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 02:00 AM
тАО11-12-2009 02:00 AM
Re: Perl with Oracle Connection through Apache
Iam using Linxu RHEL5.4 x86_64 bit machine.
if i ran the ldd command. it gives the follwoing.
ldd /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so
libclntsh.so.10.1 => /opt/oracle/db/10gR2/lib/libclntsh.so.10.1 (0x00002b337f1c4000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b3380663000)
libm.so.6 => /lib64/libm.so.6 (0x00002b3380867000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b3380aeb000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b3380d06000)
libc.so.6 => /lib64/libc.so.6 (0x00002b3380f1e000)
libnnz10.so => /opt/oracle/db/10gR2/lib/libnnz10.so (0x00002b3381276000)
/lib64/ld-linux-x86-64.so.2 (0x0000003204400000)
Please my .bash_profile paths.
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE
export ORACLE_SID=tftdb
export LD_LIBRARY_PATH=/usr/lib:$ORACLE_HOME/lib:$ORACLE_HOME/lib32:/usr/lib64:/usr/lib/oracle/10.2.0.3/client64/lib:/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle
export PATH=$PATH:$LD_LIBRARY_PATH:$ORACLE_HOME/bin
export TNS_ADMIN=$ORACLE_HOME/network/admin
Could you please tel me if did any mistakes here..
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2009 02:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 07:54 PM
тАО11-15-2009 07:54 PM
Re: Perl with Oracle Connection through Apache
Thanks for the appropriate solution.
Oracle with perl problem solved.
regards
Krishna