notsoevil has asked for the wisdom of the Perl Monks concerning the following question:
That is the basics of what exists, now my code:
use DBI; use DBD::Oracle; use strict; my $dbh = DBI->connect("dbi:Oracle:host=myhost;sid=mysid", 'foo', 'bar +') or die "I died: $DBI::errstr"; print "Content-type: text/html\n\n"; print "hey, i made it this far";
Which results in:
install_driver(Oracle) failed: Can't load 'D:/Perl/site/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:Access is denied at D:/Perl/lib/DynaLoader.pm line 200. at (eval 1) line 3 Compilation failed in require at (eval 1) line 3. Perhaps a required shared library or dll isn't installed where expected at d:\currmktg\test.cgi line 14
Note, my die statement "I died: $DBI::errstr" did not show up (because it 'die'd before the or?).
The 'Access Denied' part looks promising, but there are no odd permissions (as far as 'permissions' go on NT) on the file or any of its folders.
Maybe the module isn't installed? Nope, I had them checked. It is sitting precisely where it should be. DBI is where it should be too.
A correct and full installation of SQL*Net is on the machine as well. Not that may or may not have been brought up, I just want to cover some possible bases.
The project was going to be done in ColdFusion, but I convinced them to use Perl for two reasons: I know more Perl than ColdFusion, and Perl is the right tool for this job.
Now, before they installed Perl, they had set up a DSN on the machine so ColdFusion could connect to the database via ODBC. That DSN wouldn't have been able to been set up without the proper SQL*Net tools available.
Should I, for the sake of moving forward, have them install the Perl ODBC module and try connecting that way? If I did, what would be the performance loss/gain over a fixed installation of DBD::Oracle?
Thanks for any help.
--
notsoevil
--
Jeremiah 49:32 - And their camels shall be a booty. . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Oracle and Perl
by arturo (Vicar) on Mar 28, 2001 at 21:53 UTC | |
by notsoevil (Pilgrim) on Mar 29, 2001 at 01:02 UTC | |
by tye (Sage) on Mar 29, 2001 at 01:04 UTC | |
by notsoevil (Pilgrim) on Mar 29, 2001 at 01:08 UTC | |
by tye (Sage) on Mar 29, 2001 at 01:18 UTC | |
|
Re: Oracle and Perl
by tame1 (Pilgrim) on Mar 28, 2001 at 23:27 UTC | |
|
Re: Oracle and Perl
by notsoevil (Pilgrim) on Mar 28, 2001 at 23:38 UTC | |
by agoth (Chaplain) on Mar 29, 2001 at 14:42 UTC | |
by notsoevil (Pilgrim) on Mar 30, 2001 at 09:13 UTC |