oracle / node-oracledb

Oracle Database driver for Node.js maintained by Oracle Corp.
http://oracle.github.io/node-oracledb/
Other
2.24k stars 1.07k forks source link

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

Closed surajkrishan closed 1 year ago

surajkrishan commented 1 year ago
  1. What versions are you using?

    "oracledb": "^5.4.0",

  1. Describe the problem

Getting DPI-1047 error even tho i have given the path of oracle client lib.

  1. Include a runnable Node.js script that shows the problem.
image
cjbj commented 1 year ago

Can you cut & paste code? Not everyone can read screen shots.

Also read the doc about initOracleClient() on Linux:

Note on Linux this is only useful to force immediate loading of the libraries because the libraries must also be in the system library search path, i.e. configured with ldconfig or set in LD_LIBRARY_PATH

surajkrishan commented 1 year ago

Hi @cjbj - I actually found the example oracle code which I have followed, and it worked. But I personally feel why we need a separate client lib to be placed alongside with code. It should be part of node_module itself would be really great.

surajkrishan commented 1 year ago

I know Oracle team can do it easily 😃

cjbj commented 1 year ago

@surajkrishan check out https://github.com/oracle/node-oracledb/issues/1497

abrar-khan007 commented 1 year ago

?