python-cx_Oracle icon indicating copy to clipboard operation
python-cx_Oracle copied to clipboard

Oracle instant client 19.3

Open sdamte0428 opened this issue 6 years ago • 7 comments

Do these first

Answer the following questions

  1. Describe the problem and show the error you have. Cut and paste text showing the command you ran. No screenshots. Use a gist for long screen output and logs: see https://gist.github.com/.

  2. What Node.js version are you using? Run node and show the output of:

process.platform
process.version
process.arch
require('oracledb').versionString
require('oracledb').oracleClientVersionString
  1. Are you installing into vanilla Node.js, or using something like Electron?

  2. Show the directory listing where your Oracle client libraries are installed (e.g. the Instant Client directory). Is it 64-bit or 32-bit?

  3. Show what the PATH environment variable (on Windows) or LD_LIBRARY_PATH (on Linux) are set to? On macOS, show what is in ~/lib.

  4. Show any Oracle environment variables set (e.g. ORACLE_HOME, ORACLE_BASE).

sdamte0428 avatar Jun 21 '20 20:06 sdamte0428

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

Wrong repo. Look at https://github.com/oracle/python-cx_Oracle/issues/341

cjbj avatar Jun 21 '20 23:06 cjbj

Hey, i am facing this problem can not solve this issue, please help me!

  1. Error: Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See https://oracle.github.io/odpi/doc/installation.html#macos for help Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html You must have the 64-bit Oracle Instant Client Basic or Basic Light package in ~/lib or /usr/local/lib They can be downloaded from http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html at OracleDb.getConnection (/Users/nodir/projects/mobile-console/node_modules/oracledb/lib/oracledb.js:287:10) at OracleDb.getConnection (/Users/nodir/projects/mobile-console/node_modules/oracledb/lib/util.js:185:19) at /Users/nodir/projects/mobile-console/node_modules/knex/lib/dialects/oracledb/index.js:105:19 at Promise._execute (/Users/nodir/projects/mobile-console/node_modules/knex/node_modules/bluebird/js/release/debuggability.js:384:9) at Promise._resolveFromExecutor (/Users/nodir/projects/mobile-console/node_modules/knex/node_modules/bluebird/js/release/promise.js:518:18) at new Promise (/Users/nodir/projects/mobile-console/node_modules/knex/node_modules/bluebird/js/release/promise.js:103:10) at Client_Oracledb.acquireRawConnection (/Users/nodir/projects/mobile-console/node_modules/knex/lib/dialects/oracledb/index.js:80:27) at create (/Users/nodir/projects/mobile-console/node_modules/knex/lib/client.js:290:39) at processTicksAndRejections (internal/process/task_queues.js:97:5) { errorNum: 0, offset: 0 }

proccess.platform: darwin proccess.version: v14.3.0 process.arch: x64 require('oracledb').versionString: 4.2.0 require('oracledb').oracleClientVersionString: Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See https://oracle.github.io/odpi/doc/installation.html#macos for help at module.exports (/Users/nodir/projects/mobile-console/server-app.js:19:34) at Object.<anonymous> (/Users/nodir/projects/mobile-console/server-entry.js:16:13) at Module._compile (internal/modules/cjs/loader.js:1200:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10) at Module.load (internal/modules/cjs/loader.js:1049:32) at Function.Module._load (internal/modules/cjs/loader.js:937:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

Installing into Nodejs (Reactjs project) nodir@MacBook-Pro-3 lib % cd ~/lib nodir@MacBook-Pro-3 lib % ls libclntsh.dylib

nodir@MacBook-Pro-3 ~ % cd /opt/oracle nodir@MacBook-Pro-3 oracle % ls BASIC_LICENSE libclntsh.dylib libclntsh.dylib.18.1 libocci.dylib libocci.dylib.18.1 liboramysql19.dylib uidrvci BASIC_README libclntsh.dylib.10.1 libclntsh.dylib.19.1 libocci.dylib.10.1 libocci.dylib.19.1 network xstreams.jar adrci libclntsh.dylib.11.1 libclntshcore.dylib.19.1 libocci.dylib.11.1 libociei.dylib ojdbc8.jar genezi libclntsh.dylib.12.1 libnnz19.dylib libocci.dylib.12.1 libocijdbc19.dylib ucp.jar

ideal22 avatar Jun 24 '20 09:06 ideal22

See https://github.com/oracle/node-oracledb/issues/1239#issuecomment-636819727 and also try the upcoming changes in 5.0.0-dev, see https://github.com/oracle/node-oracledb/issues/1239#issuecomment-637948310

Note that in 5.0, putting libraries in ~/lib won't work with recent Node.js versions.

cjbj avatar Jun 24 '20 23:06 cjbj

After so many trials, this command solved my issue .Now I am able to connect .The rest of the process is the same as its described in the instructions .

ln -s ~/instantclient_19_3/libclntsh.dylib ~/Library/Python/3.8/lib/python/site-packages

Thanks,

On Wed, Jun 24, 2020 at 2:52 AM ideal22 [email protected] wrote:

Hey, i am facing this problem can not solve this issue, please help me!

Error: Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See https://oracle.github.io/odpi/doc/installation.html#macos for help Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html You must have the 64-bit Oracle Instant Client Basic or Basic Light package in ~/lib or /usr/local/lib They can be downloaded from http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html at OracleDb.getConnection (/Users/nodir/projects/mobile-console/node_modules/oracledb/lib/oracledb.js:287:10) at OracleDb.getConnection (/Users/nodir/projects/mobile-console/node_modules/oracledb/lib/util.js:185:19) at /Users/nodir/projects/mobile-console/node_modules/knex/lib/dialects/oracledb/index.js:105:19 at Promise._execute (/Users/nodir/projects/mobile-console/node_modules/knex/node_modules/bluebird/js/release/debuggability.js:384:9) at Promise._resolveFromExecutor (/Users/nodir/projects/mobile-console/node_modules/knex/node_modules/bluebird/js/release/promise.js:518:18) at new Promise (/Users/nodir/projects/mobile-console/node_modules/knex/node_modules/bluebird/js/release/promise.js:103:10) at Client_Oracledb.acquireRawConnection (/Users/nodir/projects/mobile-console/node_modules/knex/lib/dialects/oracledb/index.js:80:27) at create (/Users/nodir/projects/mobile-console/node_modules/knex/lib/client.js:290:39) at processTicksAndRejections (internal/process/task_queues.js:97:5) { errorNum: 0, offset: 0 } 2.

proccess.platform: darwin proccess.version: v14.3.0 process.arch: x64 require('oracledb').versionString: 4.2.0 require('oracledb').oracleClientVersionString: Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See https://oracle.github.io/odpi/doc/installation.html#macos for help at module.exports (/Users/nodir/projects/mobile-console/server-app.js:19:34) at Object. (/Users/nodir/projects/mobile-console/server-entry.js:16:13) at Module._compile (internal/modules/cjs/loader.js:1200:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10) at Module.load (internal/modules/cjs/loader.js:1049:32) at Function.Module._load (internal/modules/cjs/loader.js:937:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

Installing into Nodejs (Reactjs project) nodir@MacBook-Pro-3 lib % cd ~/lib nodir@MacBook-Pro-3 lib % ls libclntsh.dylib

nodir@MacBook-Pro-3 ~ % cd /opt/oracle nodir@MacBook-Pro-3 oracle % ls BASIC_LICENSE libclntsh.dylib libclntsh.dylib.18.1 libocci.dylib libocci.dylib.18.1 liboramysql19.dylib uidrvci BASIC_README libclntsh.dylib.10.1 libclntsh.dylib.19.1 libocci.dylib.10.1 libocci.dylib.19.1 network xstreams.jar adrci libclntsh.dylib.11.1 libclntshcore.dylib.19.1 libocci.dylib.11.1 libociei.dylib ojdbc8.jar genezi libclntsh.dylib.12.1 libnnz19.dylib libocci.dylib.12.1 libocijdbc19.dylib ucp.jar

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/oracle/node-oracledb/issues/1265#issuecomment-648720147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQBAPJAR5TXERD4CJSLKLS3RYHEHHANCNFSM4OEAOFQQ .

sdamte0428 avatar Jun 29 '20 06:06 sdamte0428

@sdamte0428 I've transferred this issue to the correct repo. Please take care when logging issues - thanks!

The command you gave is effectively given in the instructions https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html#installing-cx-oracle-on-macos

I'm glad you are able to get cx_Oracle running now we've worked around the newer macOS restrictions.

cjbj avatar Jun 29 '20 06:06 cjbj

Yes, its given in the instruction. used : https://www.oracle.com/database/technologies/instant-client/downloads.html first this one and was working fine for SQL Plus . Then followed the top link by clearing out everything first

https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html#installing-cx-oracle-on-macos

Thanks, Selam

On Sun, Jun 28, 2020 at 11:28 PM Christopher Jones [email protected] wrote:

@sdamte0428 https://github.com/sdamte0428 I've transferred this issue to the correct repo. Please take care when logging issues - thanks!

The command you gave is effectively given in the instructions https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html#installing-cx-oracle-on-macos

I'm glad you are able to get cx_Oracle running now we've worked around the newer macOS restrictions.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oracle/python-cx_Oracle/issues/458#issuecomment-650949259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQBAPJAXM7I6PQ4AHHSBCB3RZAX75ANCNFSM4OK6JOSQ .

sdamte0428 avatar Jun 29 '20 21:06 sdamte0428