Re: Getting Error Message "Can't load 'C:/Perl64/lib/auto/DBD/Oracle/Oracle.dll" While Connecting to Oracle
Alexander Foken <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.general |
|---|---|
| Message-ID | <[email protected]> |
On 26.01.2014 01:19, Tony Byorick wrote: > 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; > > Below is the full error message: > > 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. > [...] > > 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 version of the > Oracle driver? Yes. The "bitness" of Perl and the database libraries must match, not only for Oracle, but for every database (and every C/C++ library you want to use from Perl). > [...] > Try to get a 64 bit Oracle client, or use a 32 bit Perl. Alexander -- Alexander Foken mailto:[email protected] http://www.foken.de/alexander/