- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to connect to Oracle database, using PE...
Operating System - HP-UX
1748154
Members
3613
Online
108758
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-11-2008 11:26 AM
тАО07-11-2008 11:26 AM
Unable to connect to Oracle database, using PERL script running on Apache server with mod_perl
Any suggestions where to look to resolve this error: Can't locate auto/DBI/connect.al
Much appreciated,
Much appreciated,
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 12:58 PM
тАО07-11-2008 12:58 PM
Re: Unable to connect to Oracle database, using PERL script running on Apache server with mod_perl
Does your perl implementation include the DBI and DBD-ORACLE modules ??
#!/usr/bin/perl
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}
If not then you need to get them from CPAN and figure out how to compile. Lots of threads on this forum on how ( it is not a task for the faint hearted, good luck ;)
#!/usr/bin/perl
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}
If not then you need to get them from CPAN and figure out how to compile. Lots of threads on this forum on how ( it is not a task for the faint hearted, good luck ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 05:30 AM
тАО07-14-2008 05:30 AM
Re: Unable to connect to Oracle database, using PERL script running on Apache server with mod_perl
Yes, DBI-1.605 and DBD-Oracle-1.21 are installed in the /opt/perl_64 directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 09:59 PM
тАО07-14-2008 09:59 PM
Re: Unable to connect to Oracle database, using PERL script running on Apache server with mod_perl
Hi Marjorie,
I guess you already have confirmed that you can indeed load both modules DBI and DBD::Oracle?
Simple check would be to
$ perl -MDBI -e0
and
$perl -MDBD::Oracle -e0
Both commands should return without any output at all and RC == 0.
But your mod_perl could still be linked against another Perl installation on your system to which DBD::Oracle is unknown for instance.
I guess there are proper ways to verify this
but I know too little about mod_perl.
Anyway I would for once try this.
Both displayed paths should point to the same Perl installation.
e.g.
# strings /opt/hpws/apache/modules/mod_perl.so|grep perl/lib
/opt/perl/lib/5.8.3
/opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi
/opt/perl/lib/5.8.3
/opt/perl/lib/site_perl/5.8.3/PA-RISC1.1-thread-multi
/opt/perl/lib/site_perl/5.8.3
/opt/perl/lib/site_perl
# perl -le 'print join("\n",@INC)'
/opt/perl5/lib/5.8.8/PA-RISC2.0-LP64
/opt/perl5/lib/5.8.8
/opt/perl5/lib/site_perl/5.8.8/PA-RISC2.0-LP64
/opt/perl5/lib/site_perl/5.8.8
/opt/perl5/lib/site_perl
.
Also, I am sure that once your Apache is mod_perl enabled and you GET a CGI serviced by mod_perl that in the webserver's HTTP response header as well as when you write or use a small mod_perl handler that simply dumps its environment, that you will get a hint which Perl version on the system was used to produce the response.
But sorry, I've forgotten the details because it's been too long since I last dealt with mod_perl.
I guess you already have confirmed that you can indeed load both modules DBI and DBD::Oracle?
Simple check would be to
$ perl -MDBI -e0
and
$perl -MDBD::Oracle -e0
Both commands should return without any output at all and RC == 0.
But your mod_perl could still be linked against another Perl installation on your system to which DBD::Oracle is unknown for instance.
I guess there are proper ways to verify this
but I know too little about mod_perl.
Anyway I would for once try this.
Both displayed paths should point to the same Perl installation.
e.g.
# strings /opt/hpws/apache/modules/mod_perl.so|grep perl/lib
/opt/perl/lib/5.8.3
/opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi
/opt/perl/lib/5.8.3
/opt/perl/lib/site_perl/5.8.3/PA-RISC1.1-thread-multi
/opt/perl/lib/site_perl/5.8.3
/opt/perl/lib/site_perl
# perl -le 'print join("\n",@INC)'
/opt/perl5/lib/5.8.8/PA-RISC2.0-LP64
/opt/perl5/lib/5.8.8
/opt/perl5/lib/site_perl/5.8.8/PA-RISC2.0-LP64
/opt/perl5/lib/site_perl/5.8.8
/opt/perl5/lib/site_perl
.
Also, I am sure that once your Apache is mod_perl enabled and you GET a CGI serviced by mod_perl that in the webserver's HTTP response header as well as when you write or use a small mod_perl handler that simply dumps its environment, that you will get a hint which Perl version on the system was used to produce the response.
But sorry, I've forgotten the details because it's been too long since I last dealt with mod_perl.
Madness, thy name is system administration
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP