title: Oracle error: TNS: Listener was not given the SERVICE_NAME in CONNECT_DATA 1
body: <p>I found that error Visual stutio 2010 when I try to connect with Oracle database </p>
  
  <p><a href="http://i.stack.imgur.com/BtIKu.jpg">http://i.stack.imgur.com/BtIKu.jpg</a></p>
  
  <p><a href="http://i.stack.imgur.com/q6ffE.jpg">http://i.stack.imgur.com/q6ffE.jpg</a></p>
  
  <p>Here is TNSNAMES.ORA: </p>
  
  <pre><code>TNS_ALIAS=
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST =188.11.32.22)(PORT = 1521))
      (CONNECT_DATA =
        (SERVER = DEDICATED)
        (SERVICE_NAME = orcl)
      )
    )
  </code></pre>
  
  <p>Here is sqlnet.ora</p>
  
  <pre><code># sqlnet.ora Network Configuration File: F:\app\user\product\11.2.0\client_1\network\admin\sqlnet.ora
  # Generated by Oracle configuration tools.
  
  # This file is actually generated by netca. But if customers choose to 
  # install "Software Only", this file wont exist and without the native 
  # authentication, they will not be able to connect to the database on NT.
  
  SQLNET.AUTHENTICATION_SERVICES= (NTS)
  
  NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
  </code></pre>
  
  <p>What should I do now??</p>