Don't ask to ask, just ask | |
PerlMonks |
Error Message "Can't load 'C:/Perl64/lib/auto/DBD/Oracle/Oracle.dll" While Connecting to Oracleby TonyByorick (Initiate) |
on Jan 25, 2014 at 22:00 UTC ( [id://1072094]=perlquestion: print w/replies, xml ) | Need Help?? |
TonyByorick has asked for the wisdom of the Perl Monks concerning the following question: I am trying to configure an Oracle connection from Perl running on a Windows 7 desktop to an Oracle 11g database running on Linux; however the database connection step is failing. The following line of perl code fails: use DBD::Oracle;The full error message is: Can't load 'C:/Perl64/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:%1 is not a valid Win32 application at C:/Perl64/lib/DynaLoader.pm line 191. at C:\go\perl\tracker\pingOracle.pl line 17.The following line of perl code fails with a similar error message: $dbh = DBI->connect("dbi:Oracle:host=$host;sid=$sid;port=$port", $user, $passwd);The version of my Perl install is:
I'm running 64 bit Windows and 64 bit Perl. Is it possible the DBD loader is failing because it is trying to load a 32 bit driver? The Oracle 11.2 client package of drivers is installed on the same desktop PC and these drivers successfully connect my Toad client to the Oracle database. From the Perl script error message above, it appears Perl is trying to load a driver that was installed along with ActiveState Perl. Should I try to configure Perl to use the Oracle 11.2 drivers? Or should Perl be loading drivers installed from ActiveState? Any help or thoughts would greatly appreciated. -Tony
Back to
Seekers of Perl Wisdom
|
|