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

Connect to multiple Oracle DBs via LDAP

Open Syrrius78 opened this issue 6 years ago • 3 comments

hi, For a project, I try to connect to multiple oracle databases via LDAP (different LDAP url & context) . It's working fine for 1 database : sqlalchemy + cx_Oracle + sqlnet.ora & ldap.ora files.

Then I try to connect a 2st database, it doesn't work because it seems we can only declare 1 database with ora files (seems impossible to declare multiple LDAP context).

Does someone have an idea how to do that ? thanks in advance.

Syrrius78 avatar Jun 16 '20 15:06 Syrrius78

Tagging @onmp. It's not quite his area but he may be able to help.

cjbj avatar Jun 19 '20 07:06 cjbj

Oracle Net Services uses parameters in sqlnet.ora and ldap.ora files to resolve a TNS alias stored in a LDAP server. LDAP server or servers provide a way to manage TNS aliases in a centralized manner. If the error is Oracle Net failed to resolve an TNS alias, move all the aliases under one LDAP context. If the error is something else, please be more specific about the error encountered.

onmp avatar Jun 19 '20 21:06 onmp

Closing - no activity

cjbj avatar Aug 04 '20 04:08 cjbj