title: ORA-12154: TNS:could not resolve the connect identifier specified while executing python code from windows cmd
body: <p>Getting TNS Error while executing a python code from Windows Command Prompt.
  The python code connects to Oracle schema and perform few analysis.</p>
  <p>The code works properly in jupyter but while executing the code in command prompt getting  below error</p>
  <p>ORA-12154: TNS:could not resolve the connect identifier specified</p>
  <p>Below are the starting lines of my code.</p>
  <pre class="lang-py prettyprint-override"><code>import cx_Oracle
  def test_func():
      try:
          con = cx_Oracle.connect('USER_ID/PASSWORD@host:Port/service') 
  </code></pre>
  <p>Note: in above example given the syntax which I am using to connect to Oracle schema.</p>
  <p>Kindly let me know, is any additional step is to be done?</p>