title: ORA-12162: TNS:net service name is incorrectly specified on Mac OS X Lion
body: <p>I am trying to connect to an oracle database using oracle sqlplus instant client using tnsnames.ora. But getting this error: ORA-12162: TNS:net service name is incorrectly specified.</p>
  
  <p>I have following environmental value set up :</p>
  
  <pre><code>DYLD_LIBRARY_PATH,TNS_ADMIN, ORACLE_HOME
  </code></pre>
  
  <p>The location of sqlplus is added to the PATH Variable. My instantclient10_2 deploying is located at ~/Library/oracle direcoty. The oracle folder has all the access to the user.</p>
  
  <p>I am able to connect with TNS using oracle SqlDeveloper. Please help me resolve this issue.</p>
  
  <p>OS Version:- Mac OS X 10.7.2 (Lion)</p>