Skip to Main Content

ORA-12154: TNS:could not resolve the connect identifier specified - when connecting via Python scrip

User_427NNAug 19 2022 — edited Aug 19 2022

I am trying to connect to a DB via python script. Script works succesfully on my laptop, but I've attempted to get it running on a VM and its not working correctly, throwing below Oracle error:
(cx_Oracle.DatabaseError) ORA-12154: TNS:could not resolve the connect identifier specified
SQL Developer is set up on the VM and I am able to use it as normal, connected to same DB I am trying to access via Python. Any idea what might be the source of my issue?

Comments
Post Details
Added on Aug 19 2022
0 comments
85 views