Re: Getting Error Message "Can't load 'C:/Perl64/lib/auto/DBD/Oracle/Oracle.dll" While Connecting to Oracle

Bruce Johnson <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On Jan 27, 2014, at 12:04 PM, Alexander Foken <[email protected]> wrote:

>> 
>> 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.

The Oracle Instant Client is very useful for this; you can use both 32-bit and 64-bit Oracle libraries on one system; just install them in different directories and ensure that the environmental variables are properly set prior to running the perl code.

I never install the full Oracle client on anything any more.

-- 
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.