Connecting to Oracle database from Python -


trying connect oracle database python using cx-oracle. followed steps mentioned in link:https://gist.github.com/thom-nic/6011715

i running python 2.7.8. on yosemite(10.10.2).after unzip instant client path on machine: /users/ayada/library/share/oracle set oracle_home , have set both dyld_library_path, ld_library_path oracle_home. use pip(env archflags="-arch $arch" pip install cx_oracle) install cx_oracle encountering following error: distutils.errors.distutilssetuperror:

oracle home (/users/ayada/library/share/oracle) not refer 9i, 10g, 11g or 12c installation.

cleaning up... command python setup.py egg_info failed error code 1 in /private/var/folders/22/78xh65wd3xq232p4zd18l8800013hw/t/pip_build_ayada/cx-oracle storing debug log failure in /users/ayada/.pip/pip.log

to give context, don't have oracle database installed on machine trying connect remote server.

i relatively newbie working on mac , doing these kind of setups. please advice.

have done kevindalias advised in comments section of link pasted?

seems oracle made change basic zip since posted, else arrives here:

ln -s libclntsh.dylib.11.2 libclntsh.dylib ln -s libocci.dylib.11.2 libocci.dylib

should be...

ln -s libclntsh.dylib.11.1 libclntsh.dylib ln -s libocci.dylib.11.1 libocci.dylib

you'll see both 11.1 files when unpack zips, , links need point them. tweak, able install cx_oracle 5.1.2 on os x 10.8.5 using 64-bit versions of oracle instant client 11.2 , python 2.7.6. luck.

also don't know mac, in rhel, oracle_home different ld_library_path:

ld_library_path=$oracle_home/lib oracle_home=/usr/lib/oracle/12.1/client64


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -