Connect to DB using LDAP with python cx_Oracle
问题 I have a set of python scripts that use cx_Oracle to connect to a remote DB. This is a large project, were this connections are used several times. Additionally, I produce an .exe file that is distributed and should be as self-contained as possible. In other words, if I send you the .exe, you should be able to run it without any extra tinkering (I use pyinstaller ) Right now, I get a connection using ip = 'myhost.example.pt' port = 1521 SID = 'MYDB_PRD.EXAMPLE.PT' dsn_tns = cx_Oracle.makedsn