Hi,
I am in a bit of a bind here, any help is appreciated.
Basically it goes like this:
I installed DBI on my HP-UX 11.0 system with no problems.
DBD was a bit more complicated. After setting all the env
variables, I was able to get DBD up by:
perl Makefile.PL LINKTYPE=static
And here is the part that gets me...
The make test works fine, and I've written a few hundred DBI scripts,
but I keep getting the following error when I try to connect
using the exact syntax from the test.pl script (error):
install_driver(Oracle) failed: Can't locate loadable object for module DBD::Orac
le in @INC (@INC contains: /usr/local/lib/perl5/5.00503/PA-RISC1.1 /usr/local/li
b/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/PA-RISC1.1 /usr/local/lib/p
erl5/site_perl/5.005 .) at (eval 1) line 3
Perhaps a module that DBD::Oracle requires hasn't been fully installed
at ./connect.pl line 5
This is my script, even the basics don't work here:
#!/usr/local/bin/perl
use DBI;
$dbh = DBI->connect("dbi:Oracle:hostname=myhostnamehere;sid=mysidhere", usernamehere, 'passwordhere', { RaiseError => 1 });
$dbh->disconnect();
The DB I am trying to connect to accepts connections on port 1521(for Oracle, it tries 1526, and then 1521)
and I am having no luck.
Has anyone had this happen? If anyone has suggestions or has had any success
connecting to an Oracle DB via DBI on HP-UX 11, I would appreciate your insight.
Thanks, and take care,
Frank
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.