I want to connect to remote oracle db using python. Tried to using cx_Oracle.
Here is my code:
import cx_Oracle
adr = 'server_addres'
uid = 'user_id'
pwd = 'pwd'
port = 'port'
cx_Oracle.connect(uid + "/" + pwd + "@" + adr)
After execute, I am receiving error:
cx_Oracle.DatabaseError: ORA-12154: TNS: could not resolve the connect identifier specified
How to connect to my remote oracle db? Or maybe I should use something different than cx_Oracle?