title: TNS:could not resolve the connect identifier specified
body: <p>I have oracle server 11g installed on my windows 7 machine. I have to install this server from a remote machine. Remote machine is a 64 bit system,with Ubuntu 12.10. To access the server I installed Oracle instant client and configured eveything.</p>
  
  <p>ORACLE_HOME, TNS_ADMIN, PATH, LD_LIBRARY_PATH all are set, and are pointing to correct locations.</p>
  
  <p>My tnsname.ora file:</p>
  
  <pre><code>ORCL =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ravi)(PORT = 1521))
      (CONNECT_DATA =
        (SERVER = DEDICATED)
        (SERVICE_NAME = orcl.xxx.com)
      )
    )
  </code></pre>
  
  <p>My sqlnet.ora file</p>
  
  <pre><code>SQLNET.AUTHENTICATION_SERVICES= (NTS)
  
  NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
  </code></pre>
  
  <p>My tnslistener on the server is up and running. </p>
  
  <pre><code>LSNRCTL&gt; services
  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
  Services Summary...
  Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
      Handler(s):
        "DEDICATED" established:0 refused:0
           LOCAL SERVER
  Service "orcl.xxx.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
      Handler(s):
        "DEDICATED" established:221 refused:0 state:ready
           LOCAL SERVER
  Service "orclXDB.xxx.com" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
      Handler(s):
        "D000" established:0 refused:0 current:0 max:1022 state:ready
           DISPATCHER &lt;machine: ravi, pid: 4844&gt;
           (ADDRESS=(PROTOCOL=tcp)(HOST=ravi.xxx.com)(PORT=49239))
  The command completed successfully
  </code></pre>
  
  <p>Even after setting all these, Im not able to connect to the server.</p>
  
  <p>When I issue <code>sqlplus user1@orcl</code> command I get </p>
  
  <pre><code>ravi@ubuntu:~/app/ravi/product/11.2.0/dbhome_1/bin$ sqlplus user1@orcl
  
  SQL*Plus: Release 11.2.0.1.0 Production on Thu Apr 25 01:17:01 2013
  
  Copyright (c) 1982, 2009, Oracle.  All rights reserved.
  
  Enter password: 
  ERROR:
  ORA-12154: TNS:could not resolve the connect identifier specified
  </code></pre>
  
  <p>I have seen all these posts, </p>
  
  <p><a href="https://stackoverflow.com/questions/6550542/sqlplus-login-error-when-using-bash-variables-sp2-0306-invalid-option">Sqlplus login error when using bash variables: SP2-0306: Invalid option</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7084439/ora-12154-could-not-resolve-with-oracle-instant-client">ora-12154 could not resolve... with oracle instant client</a></p>
  
  <p>and infact many other posts, but none of them is resolving my issue. </p>
  
  <p>Requesting for help</p>
  
  <p>Thanks in Advance</p>