Forum Stats

  • 3,853,241 Users
  • 2,264,196 Discussions
  • 7,905,292 Comments

Discussions

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

User_427NN
User_427NN Member Posts: 13 Green Ribbon
edited Aug 19, 2022 8:16PM in Python

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?

Tagged: