Friday, September 30, 2011

tnsnames.ora

sample tnsnames.ora

---------------------------------------------------------------------------------------------------

# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xp)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )


---------------------------------------------------------------------------------------------------



here my DB name is "ORCL"
host is "XP"

The tnsnames.ora file is used to store the net services names. The deafault location is %ORACLE_HOME\network\admin on windows and $ORACLE_HOME/netwrok/admin/on UNIX.

any mistake is there or u wanna give any suggestion so please write to me ............

1 comment:

  1. Hi Chetan,

    Can you tell me when that EXTPROC_CONNECTION_DATA with the protocol of IPC is generally used? It was there by default in my tnsnames.ora file when I installed oracle on my system. But it is giving me an error when I try to connect using it in SQL Developer.

    Thanks,
    Saravan

    ReplyDelete