7 Replies Latest reply: Nov 20, 2012 11:22 AM by 947793 RSS

    ORA-12154: TNS:could not resolve the connect identifier specified

    807089
      Hi all, I need your help.

      I have this error in the oracle connection with OLEDB:

      ORA-12154: TNS:could not resolve the connect identifier specified

      Connection string:
      cn.Open "Provider=OraOLEDB.Oracle;Data Source=C800FSI1_2;UserId=DIP;Password=XXXXXX;"
      Listener.ora
      # listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\listener.ora
      # Generated by Oracle configuration tools.
      
      SID_LIST_LISTENER =
        (SID_LIST =
          (SID_DESC =
            (SID_NAME = CLRExtProc)
            (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_2)
            (PROGRAM = extproc)
            (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_2\bin\oraclr11.dll")
          )
        )
      
      LISTENER =
        (DESCRIPTION_LIST =
          (DESCRIPTION =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
            (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
          )
        )
      
      ADR_BASE_LISTENER = C:\app\Administrator
      sqlnet.ora
      # sqlnet.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\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.
      
      NAMES.DEFAULT_DOMAIN = C800FSI1
      SQLNET.AUTHENTICATION_SERVICES = (none)
      SQLNET.AUTHENTICATION = (none)
      NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
      TnsNames.ora
      # tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_2\network\admin\tnsnames.ora
      # Generated by Oracle configuration tools.
      
      C800FSI1_2 =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
          (CONNECT_DATA =
            (SERVER = DEDICATED)
            (SERVICE_NAME = C800FSI1_2)
          )
        )
      
      ORACLR_CONNECTION_DATA =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          )
          (CONNECT_DATA =
            (SID = CLRExtProc)
            (PRESENTATION = RO)
          )
        )
      
      C800FSI1 =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
          (CONNECT_DATA =
            (SERVER = DEDICATED)
            (SERVICE_NAME = C800FSI1)
          )
        )
      
      ORCL =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = C800FSI1)(PORT = 1521))
          (CONNECT_DATA =
            (SERVER = DEDICATED)
            (SERVICE_NAME = orcl)
          )
        )
      Can you help me?

      Edited by: user6317803 on 26-gen-2011 13.13