Python module “cx_Oracle” module could not be found

# – This import requires appropriate oraocciXX.dll to be available in PATH (on windows) # (Probably LD_LIBRARY_PATH or LD_LIBRARY_PATH64 on POSIX) # where XX is the oracle DB version, e.g. oraocci11.dll for Oracle 11g. # – This dll is part of the Oracle Instant client pkg available here: # http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html # – Also ensure that … Read more

cx_Oracle & Connecting to Oracle DB Remotely

I like to do it this way: ip = ‘192.168.0.1’ port = 1521 SID = ‘YOURSIDHERE’ dsn_tns = cx_Oracle.makedsn(ip, port, SID) db = cx_Oracle.connect(‘username’, ‘password’, dsn_tns) One of the main reasons I like this method is that I usually have a TNSNAMES.ORA file lying around someplace, and I can check that the dsn_tns object will … Read more