-
Notifications
You must be signed in to change notification settings - Fork 365
How to connect two Oracle Autonomous Databases using cx_Oracle wallet in one python program #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The problem you are experiencing is that the environment variable |
Use 21c client libraries - I'm not convinced all the important enhancements to support this nicely have landed in 19. At the least, you should get a much newer 19c release update. 19.10 is already out. |
thanks @anthony-tuininga this helped me with 19.6 instant client. This has helped me to overcome the current situation. |
Thanks @cjbj I had already 19.6 and I didn't see a need to move to 19.10 earlier. May be this is time to change the version. |
This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not been updated for a month. |
A followup: I said:
These important fixes have been backported to the 19c Oracle client libraries in version 19.17. |
Oracle Autonomous Databases in OCI - Transaction database and DW database.
I have Oracle Transaction (TRX) and Data warehouse (DW) databases in OCI. I wrote python program to connect to the databases using cx_Oracle wallet. I can connect to these database in separate python program without any issues.
Now, I have to connect to both TRX and DW databases in one python program. and this is not working!!!
This is what i have already done:
When i run my python file with both "def" together as seen in the code, I get
(datetime.datetime(2021, 4, 9, 11, 23, 22),)
...
connection1 = cx_Oracle.connect('username', 'passwd', 'devtrxdb_low')
cx_Oracle.DatabaseError: ORA-12154: TNS:could not resolve the connect identifier specified
my code is here:
https://github.com/Praful-Pasarkar/python_OracleDB/blob/main/call_both_db.py
OR copied code here.
The text was updated successfully, but these errors were encountered: