I try to write a script in .py for oracle connectivity:
#!/usr/bin/python import cx_Oracle connstr=\'username/pwd@database\' conn = cx_Oracle.connect(conns
Tried installing it via rpm posted in above answers, but it didn't worked. What worked instead is plain pip install.
pip install
pip install cx_oracle
The above command installed cx_oracle=6.1 Please note that I'm using python 2.7.14 Anaconda release and oracle 12c.
cx_oracle=6.1
python 2.7.14 Anaconda release
oracle 12c