node-oracledb icon indicating copy to clipboard operation
node-oracledb copied to clipboard

Error: DPI-1047: Cannot locate a 64-bit Oracle Client library

Open victorgianvechio opened this issue 7 years ago • 8 comments

I'm developing an application node that connects to oracle database. The following error appears when you try to connect:

Error: Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "C:\oracle\app\Desenv\product\11.1.0\db_1\bin\oci.dll is not the correct architecture". See https://oracle.github.io/odpi/doc/installation.html#windows for help Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html You must have 64-bit Oracle client libraries in your PATH environment variable. If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from http://www.oracle.com/technetwork/topics/winx64soft-089540.html A Microsoft Visual Studio Redistributable suitable for your Oracle client library version must be available.

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

Can someone help me?

victorgianvechio avatar Apr 11 '19 19:04 victorgianvechio

You need to have a 64-bit Oracle Client installed and you currently have a 32-bit Oracle Client installed. Take a look at the links provided in the help message for further help.

anthony-tuininga avatar Apr 11 '19 20:04 anthony-tuininga

I checked the links but did not find anything that would help me ... Does not work with 32 bits?

victorgianvechio avatar Apr 12 '19 17:04 victorgianvechio

You can use a 32-bit Oracle Client, but only if you have a 32-bit Node.js installation as well. We don't provide 32-bit binaries so you'll need to compile it yourself. I'd recommend using 64-bit, though. You simply have to download a 64-bit Oracle Instant Client from the link that was provided in the error message (http://www.oracle.com/technetwork/topics/winx64soft-089540.html).

anthony-tuininga avatar Apr 12 '19 17:04 anthony-tuininga

I installed version 64 in parallel to 32. I changed the system variable to client 64 and it worked.

Thanks for the help!

victorgianvechio avatar Apr 12 '19 18:04 victorgianvechio

Hi , Please help , I am having the same issue for last couple of days . I have set the paths and checked all the versions seems 64bit . But I couldn't connect python 3.8.3 with oracle 19c using the 19.3 oracle instant client version . attached my error message . Traceback (most recent call last): File "<pyshell#2>", line 1, in con = cx_Oracle.connect("hr/oracle@localhost/orcl") cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1) I am connected to Oracle VM .

Thanks

sdamte0428 avatar Jun 21 '20 20:06 sdamte0428

try sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf" and sudo ldconfig

masterull avatar Jul 20 '20 14:07 masterull

I installed 64 bit node with 64 bit Oracle but it is not working

hamzatariq9396 avatar Nov 22 '22 09:11 hamzatariq9396

I installed 64 bit node with 64 bit Oracle but it is not working

Try adding oracle_client directory in path in windows environment variables

victorgianvechio avatar Nov 22 '22 16:11 victorgianvechio